[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

Re: libdir and python on x86_64



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

>>>>> "Ville" == Ville Skytt <ville skytta 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 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-----


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]