[Patches] [ python-Patches-1035576 ] Add New RPM-friendly record option to setup.py

SourceForge.net noreply at sourceforge.net
Sat Oct 2 13:47:03 CEST 2004


Patches item #1035576, was opened at 2004-09-28 00:33
Message generated for change (Comment added) made by bruthasj
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=305470&aid=1035576&group_id=5470

Category: Distutils and setup.py
Group: Python 2.4
Status: Open
Resolution: None
Priority: 5
Submitted By: Jeff Pitman (bruthasj)
Assigned to: Nobody/Anonymous (nobody)
Summary: Add New RPM-friendly record option to setup.py

Initial Comment:
One major weakness of the current usage of 
INSTALLED_FILES in bdist_rpm leaves directories 
unlisted thereby causing an uninstall of a package to 
leave these behind.  This patch separates out into 
another option --record-rpm and function that generates 
a list friendly for RPM consumption. 
 
It currently handles data_dirs and install_lib (everything 
under site-packages).  In addition, languages found 
under the common LC_MESSAGES sub-directory is also 
automatically tagged with %lang(de) attribute. 
Documentation does not need to be handled since RPM 
already sets this up if the packager uses %doc. 
 
I've run a couple of tests with this patch showing good 
results. Before taking the concept further, I submit it 
here for your review. 

----------------------------------------------------------------------

>Comment By: Jeff Pitman (bruthasj)
Date: 2004-10-02 19:47

Message:
Logged In: YES 
user_id=46780

v0.2: Implement self.root optimization from how it was done 
before. 
v0.3: self.distribution.data_files can be None. 

----------------------------------------------------------------------

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=305470&aid=1035576&group_id=5470


More information about the Patches mailing list