On 06/16/2010 01:25 PM, Dominique Leuenberger wrote:
On 6/16/2010 at 13:18, Dave Plater
wrote: On 06/16/2010 12:36 PM, Dominique Leuenberger wrote: On my x86_64 system I have both lib64/python2.6/site-packages and lib/python2.6/site-packages, scons install placed the packages under the %_libexecdir and not the %_libdir and %_libexec isn't used in the spec file at build time. So I leave well alone and let scons place them where it wants but if python files are arch specific, there are matching pyc files as well, then I suppose I have to go about forcing them into lib64 for x86_64.
if you have to hack around that in such a bad way, upstream is broken. the .pyc files are not arch dependent by the way...
Upstream should simply query python to get the proper path for arch dependent and arch independent locations:
Location for arch independent files: python -c "import distutils.sysconfig ; print distutils.sysconfig.get_python_lib(plat_specific=0)" (this maps in the spec file to %python_sitelib)
And for arch dependent files: python -c "import distutils.sysconfig ; print distutils.sysconfig.get_python_lib(plat_specific=1)" (this maps to %python_sitearch)
You can't just move files around as you wish for python to find them. It has it's logic / algorithms on where to look for files.
Dominique
Which leaves me with the dilemma of what actually causes the rpmlint error, I'll post a fresh message to the list before I report it to upstream. Thanks for the %py_requires. Dave P -- To unsubscribe, e-mail: opensuse-packaging+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-packaging+help@opensuse.org