Mailinglist Archive: opensuse-packaging (284 mails)

< Previous Next >
[opensuse-packaging] Re: openSUSE Build Service python3
Dne 11.2.2011 00:07, Dave Plater napsal(a):
On 02/11/2011 12:28 AM, Dave Plater wrote:
Hi, is python3 includes being installed under "/usr/include/python3.2m"
permanent?

it would seem so

So far this only happens with my 11.3 build which is the only build that
uses a linked devel:languages:python:Factory python3. I've also noticed
your link from devel:languages:python to devel:languages:python:Factory
python3 is broken

because it doesn't belong there - i'm picking up the patches and i'll remove it afterwards

and although devel:languages:python:Factory python3 is
supposed to be the devel project, there's no factory link there either.

that's deliberate, and the link will appear again as soon as this version of python3 goes into Factory

Amazing how when you ask for help you can even help yourself. I came up
with a %{python3_incdir} macro that works (as long as the abi flags are
used) :
%global py3_abi_kind %(python3-config --abiflags)
%global python3_ver %(python3 -c "import sys; v=sys.version_info[:2];
print('%%d.%%d'%%v)" 2>/dev/null || echo PYTHON-NOT-FOUND)
%global python3_incdir
%{python3_prefix}/include/python%{python3_ver}%{py3_abi_kind}

this looks nice - i'll include python3_incdir in python3's macros

I tried %py3_ver but there's a typo in macros.python3 it begins with ->
"%(python -c "import sys;" note the lack of "3" in python3, I wondered
why it gave "2.6" as the version number. I think that's what I changed
before, can't remember.

will fix that, thanks for letting me know

regards
m.
--
To unsubscribe, e-mail: opensuse-packaging+unsubscribe@xxxxxxxxxxxx
For additional commands, e-mail: opensuse-packaging+help@xxxxxxxxxxxx

< Previous Next >