libdir and python on x86_64
Ville Skyttä
ville.skytta at iki.fi
Wed Jun 1 06:46:51 UTC 2005
On Tue, 2005-05-31 at 21:18 -0600, Kevin Fenzi wrote:
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
>
> >>>>> "Shahms" == Shahms E King <shahms at shahms.com> writes:
>
> Shahms> Use the python_sitearch or python_sitelib defines:
> Shahms> %{!?python_sitearch: %define python_sitearch %(%{__python} -c
> Shahms> "from distutils.sysconfig import get_python_lib; print
> Shahms> get_python_lib(1)")}
>
> Shahms> %{!?python_sitelib: %define python_sitelib %(%{__python} -c
> Shahms> "from distutils.sysconfig import get_python_lib; print
> Shahms> get_python_lib()")}
>
> Shahms> Pick the appropriate one, put it at the top of the specfile,
> Shahms> and use that rather than %{_libdir}. There's more information
> Shahms> in the wiki. These are also defined in the python spec
> Shahms> template in fedora-rpmdevtools.
>
> Cool. This is just what I was looking for.
Unfortunately looking at your exo commit tells me that you have probably
picked the wrong one. python_sitelib is for arch-independent stuff and
python_sitearch for arch-dependent stuff. exo seems to install arch
dependent python things.
More information about the fedora-extras-list
mailing list