Mailinglist Archive: opensuse-packaging (156 mails)
| < Previous | Next > |
Re: [opensuse-packaging] Need help with rpmlint warnings.
- From: "Dominique Leuenberger" <Dominique.Leuenberger@xxxxxxxxxxxxx>
- Date: Wed, 16 Jun 2010 13:25:55 +0200
- Message-id: <4C18D0E302000029000988A0@xxxxxxxxxxxxxxxxxxx>
On 06/16/2010 12:36 PM, Dominique Leuenberger wrote:On 6/16/2010 at 13:18, Dave Plater <davejplater@xxxxxxxxx> 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
--
To unsubscribe, e-mail: opensuse-packaging+unsubscribe@xxxxxxxxxxxx
For additional commands, e-mail: opensuse-packaging+help@xxxxxxxxxxxx
| < Previous | Next > |