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

Re: default python spec template: python_sitelib vs python_sitearch



On Mon, 2006-09-01 at 20:36 +0330, Roozbeh Pournader wrote:
> I'm not sure I really understand the pythong_sitelib and python_sitearch
> (from fedora-rpmdevtools' spectemplate-python.spec) macros properly. Two
> questions:
> 
> 1) Will these two macros produce different results on 64-bit machines?
> They expand to the same thing on my i386.
> 
> 2) Should each package use only one of the macros in its %files
> section? 
> 
> 2a) If yes, why don't we make it one macro and define it based on if the
> package is noarch or not?
> 
> 2b) If no, should architecture-dependent files of the package (*.so etc)
> use python_sitearch and others (*.py*) use python_sitelib?

You got it right. If you don't have any platform-specific code, use
%{python_sitelib} exclusively. If you do, like C-binding stuff, then all
these should go to %{python_sitearch}, since the location will be
different on 64-bit architectures.

Only .so files and friends should go to %{python_sitearch} -- so if you
have platform-independent files they should still go to
%{python_sitelib} even if you have other, platform-specific files.

Regards,
-- 
Konstantin Ryabitsev
McGill University WSG

Simon: "Come on out, River. The nice man wants to kidnap you."



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