libdir and python on x86_64

Kevin Fenzi kevin-fedora-extras at scrye.com
Fri Jun 3 02:18:38 UTC 2005


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

>>>>> "Ville" == Ville Skytt <ville.skytta at iki.fi> writes:

Ville> 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.

Ville> Unfortunately looking at your exo commit tells me that you have
Ville> probably picked the wrong one.  python_sitelib is for
Ville> arch-independent stuff and python_sitearch for arch-dependent
Ville> stuff.  exo seems to install arch dependent python things.

Ah, you are correct. I will change it to python_sitearch. 

So on x86_64, do those two macro's result in diffrent directories? 
I know they are diffrent things and _could_ be diffrent, but on all
the machines I have access to they are the same. 

Thanks for all the help...

kevin
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.6 (GNU/Linux)
Comment: Processed by Mailcrypt 3.5.8 <http://mailcrypt.sourceforge.net/>

iD8DBQFCn74E3imCezTjY0ERAuvpAJsFSDQhqLsD86kZykJChBoa4SpFigCffr0f
CnAG4oRm/KnCDK1eRJX4MTs=
=LjLj
-----END PGP SIGNATURE-----




More information about the fedora-extras-list mailing list