Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 18800 - dev-python/sip-3.5 ebuild fails to set PYVER
Summary: dev-python/sip-3.5 ebuild fails to set PYVER
Status: RESOLVED INVALID
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Development (show other bugs)
Hardware: All All
: High normal
Assignee: Alastair Tse (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2003-04-05 08:31 UTC by B. K. Oxley (binkley)
Modified: 2003-04-06 16:32 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments
Fixed ebuild for dev-python/sip-3.5 by setting PYVER. (sip-3.5.ebuild,1.18 KB, text/plain)
2003-04-05 08:31 UTC, B. K. Oxley (binkley)
Details

Note You need to log in before you can comment on or make changes to this bug.
Description B. K. Oxley (binkley) 2003-04-05 08:31:02 UTC
The dev-python/sip-3.5 ebuild correctly uses PYVER to install itself into version-specific python 
directories, but fails to ever set the value of PYVER.  Borrowing from other python ebuilds, 
inserting: 
 
PYVER=$(python -V 2>&1 | sed -e 's:Python \([0-9].[0-9]\).*:\1:') 
 
fixes the problem.  An example of the havoc this error causes, dev-python/PyQt won't build 
because it can't find sip.h in /usr/include/python2.2 as the broken ebuild for dev-python/sip 
installed into the non-existent /usr/include/python directory. 
 

Reproducible: Always
Steps to Reproduce:
1. Emerge dev-python/sip-3.5.ebuild 
 
 
Actual Results:  
Sip installed in the wrong directories. 

Expected Results:  
Set PYVER in the ebuild file.
Comment 1 B. K. Oxley (binkley) 2003-04-05 08:31:56 UTC
Created attachment 10225 [details]
Fixed ebuild for dev-python/sip-3.5 by setting PYVER.
Comment 2 Alastair Tse (RETIRED) gentoo-dev 2003-04-06 08:16:43 UTC
PYVER is set by the distutils_python_version from the distutils.eclass.

the re-declaration of this is not really needed. the package merges fine into the right directories:

>>> Merging dev-python/sip-3.5 to /
--- /usr/
--- /usr/include/
--- /usr/include/python2.2/
>>> /usr/include/python2.2/sip.h
>>> /usr/include/python2.2/sipQt.h
--- /usr/bin/
>>> /usr/bin/sip
--- /usr/lib/
--- /usr/lib/python2.2/
--- /usr/lib/python2.2/site-packages/
>>> /usr/lib/python2.2/site-packages/libsip.so.9.3.0
>>> /usr/lib/python2.2/site-packages/libsip.so -> libsip.so.9.3.0
>>> /usr/lib/python2.2/site-packages/libsip.so.9 -> libsip.so.9.3.0
>>> /usr/lib/python2.2/site-packages/libsip.so.9.3 -> libsip.so.9.3.0
Comment 3 B. K. Oxley (binkley) 2003-04-06 08:20:19 UTC
How did PYVER get set for you? 
 
Comment 4 Alastair Tse (RETIRED) gentoo-dev 2003-04-06 16:32:41 UTC
I said:

PYVER is set by the distutils_python_version from the distutils.eclass.