[Distutils] RFC : PEP 376 - egg.info
ziade.tarek at gmail.com
Sun May 3 12:03:26 CEST 2009
On Thu, Apr 30, 2009 at 9:34 AM, Tarek Ziadé <ziade.tarek at gmail.com> wrote:
> I have reworked the PEP a little bit with people feedback.
> It needs more feedback : http://svn.python.org/projects/peps/trunk/pep-0376.txt
> - install/uninstall script
> I think the best solution is not to provide an install script since
> third-party tool do it. Furthermore,
> there's already the simplest install script available today: you can
> run "python setup.py install" on a given package
> so it gets installed.
> So what about adding just a global uninstall feature, that
> uninstalls the files installed for a package, using the record
> file, and let the third party tool have better features.
> - MANIFEST (SOURCES.txt)
> Ronald pointed out that it was not necessary to have a MANIFEST file
> included if we are going to have a RECORD
> file, as described in the PEP.
> The MANIFEST (which in a way is equivalent to SOURCES.txt pip or
> easy_install adds) is the list of source files,
> whereas the RECORD is the list if installed files (which might
> include more elements in case of compilations)
> What would be the interest of having the list of source files in egg-info ?
There's another thing I have thought of, for the file list in egg-info
: make it configurable.
- make the change in the "install_egg_info" command to create the
- push the PKG-INFO file into it
- provide a new option for the command for people to point other files to add
- change the "install" command so it adds the RECORD file in this list
With that change, third-party tools will be able to configure
"install_egg_info" in order
to list extra files to add into the egg-info directory when the
package is installed,
whitout having to override that command.
The option would be a simple list of files path. Each path can be:
- a path relative to the root of the project that is being installed,
which allows you to provide a file that is present
in your distribution tree
- an absolute path,
The name of each file will have to be normalized: all upper case with
Any opinions ?
Tarek Ziadé | http://ziade.org
More information about the Distutils-SIG