Some Python Packaging Questions

Michael Schwendt fedora at wir-sind-cool.org
Tue Aug 24 07:36:26 UTC 2004


On Tue, 24 Aug 2004 10:17:48 +0800, Jeff Pitman wrote:

> Oh, and one other quick question.  
> 
> Why not use --record instead of worrying about python_sitelib and 
> python_sitearch?
> 
> %install
> %{__python} setup.py install --root=$RPM_BUILD_ROOT 
> --record=INSTALLED_FILES
> 
> %files -f INSTALLED_FILES
> %defattr(-,root,root)
> %doc README INSTALL etc. etc.

That doesn't include directories (IIRC) and would need extra effort
when you want to %ghost *.pyo files.





More information about the fedora-devel-list mailing list