Where to install application .py files?

Jose' Matos jamatos at fc.up.pt
Fri May 5 09:45:14 UTC 2006


On Friday 05 May 2006 10:30, Hans de Goede wrote:
> Hi,
>
> Also on my 64bit system I have python stuff under both
> /usr/lib/python2.4/site-packages/ and /usr/lib64/python2.4/site-packages/

This is what /usr/share/fedora/spectemplate-python.spec says:

%{!?python_sitelib: %define python_sitelib %(%{__python} -c "from 
distutils.sysconfig import get_python_lib; print get_python_lib()")}

%{!?python_sitearch: %define python_sitearch %(%{__python} -c "from 
distutils.sysconfig import get_python_lib; print get_python_lib(1)")}

...

%files
%defattr(-,root,root,-)
%doc
# Include files and dirs below %{python_sitelib} (for noarch packages) and
# %{python_sitearch} (for arch-dependent packages) as appropriate, and mark
# *.pyo as %ghost (do not include in package).


> Thanks & Regards,
>
> Hans

-- 
José Abílio




More information about the fedora-extras-list mailing list