[opensuse-buildservice] Python distutils broken on Fedora x86_64 ?
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Weird... my webpin package [1] builds fine everywhere except on Fedora
x86_64, because the setup.py installs the Python modules into
/usr/lib/python.../site-packages/... instead of
/usr/lib64/python.../site-packages/
[1]http://build.opensuse.org/package/show?package=webpin&project=openSUSE%3ATools
OTOH, I do this in my spec file (because there's no %py_sitedir on Fedora):
- ---8<--------------------------------------------------------------
%if 0%{?!py_sitedir:1}
%define py_sitedir %(%__python -c 'from distutils import sysconfig;
print sysconfig.get_python_lib(1)')
%endif
- ---8<--------------------------------------------------------------
And %py_sitedir is set to /usr/lib64/python.../site-packages
Ummmm... an idea, anyone ?
Here's the log:
http://build.opensuse.org/package/live_build_log?repository=Fedora_7&package=webpin&arch=x86_64&project=openSUSE%3ATools
cheers
- --
-o) Pascal Bleser http://linux01.gwdg.de/~pbleser/
/\\
Try passing %_libdir into setup.py? Cheers JP Pascal Bleser wrote:
Weird... my webpin package [1] builds fine everywhere except on Fedora x86_64, because the setup.py installs the Python modules into /usr/lib/python.../site-packages/... instead of /usr/lib64/python.../site-packages/
[1]http://build.opensuse.org/package/show?package=webpin&project=openSUSE%3ATools
OTOH, I do this in my spec file (because there's no %py_sitedir on Fedora): ---8<-------------------------------------------------------------- %if 0%{?!py_sitedir:1} %define py_sitedir %(%__python -c 'from distutils import sysconfig; print sysconfig.get_python_lib(1)') %endif ---8<--------------------------------------------------------------
And %py_sitedir is set to /usr/lib64/python.../site-packages
Ummmm... an idea, anyone ?
Here's the log: http://build.opensuse.org/package/live_build_log?repository=Fedora_7&package=webpin&arch=x86_64&project=openSUSE%3ATools
cheers -- -o) Pascal Bleser http://linux01.gwdg.de/~pbleser/ /\\
_\_v The more things change, the more they stay insane.
To unsubscribe, e-mail: opensuse-buildservice+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-buildservice+help@opensuse.org --------------------------------------------------------------------- To unsubscribe, e-mail: opensuse-buildservice+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-buildservice+help@opensuse.org
participants (2)
-
John Pye
-
Pascal Bleser