classification
Title: Install PKG-INFO with packages
Type: Stage:
Components: Distutils Versions: Python 2.5
process
Status: closed Resolution: accepted
Dependencies: Superseder:
Assigned To: pje Nosy List: gvanrossum, pje
Priority: normal Keywords: patch

Created on 2006-03-27 17:40 by pje, last changed 2006-03-29 21:16 by pje. This issue is now closed.

Files
File name Uploaded Description Edit
ei.patch pje, 2006-03-27 17:40 Add install_egg_info command
Messages (3)
msg49870 - (view) Author: PJ Eby (pje) * (Python committer) Date: 2006-03-27 17:40
This patch adds an 'install_egg_info' command to the
distutils install process, that writes the standard
PKG-INFO metadata to a file in the directory where the
associated modules are being installed.  The filename
is based on setuptools' conventions for reading and
writing such files, so that setuptools will be able to
recognize distutils-installed packages as being
present, and not attempt to reinstall them if they are
sufficient to meet a requested dependency.

As currently implemented, Python's main setup.py causes
a Python-2.5a0-py2.5.egg-info to be installed in
lib-dynload.  It would probably be best if it also
created similar files for ElementTree, ctypes, and any
other packages incorporated into 2.4 or 2.5 that were
separately distributed for Python 2.3.  But that
feature doesn't have to be in alpha 1.
msg49871 - (view) Author: Guido van Rossum (gvanrossum) * (Python committer) Date: 2006-03-27 21:39
Logged In: YES 
user_id=6380

Looks fine to me.  Just trim the trailing blank lines and
add a module-level docstring (look at the other install_*.py
files for examples).
msg49872 - (view) Author: PJ Eby (pje) * (Python committer) Date: 2006-03-29 21:16
Logged In: YES 
user_id=56214

Checked in.
History
Date User Action Args
2006-03-27 17:40:52pjecreate