cpython/Lib/distutils
Anthony Baxter 05f842bae2 Basic dependency checking. setup() has two new optional arguments
requires and provides. requires is a sequence of strings, of the
form 'packagename-version'. The dependency checking so far merely
does an '__import__(packagename)' and checks for packagename.__version__
You can also leave off the version, and any version of the package
will be installed.
There's a special case for the package 'python' - sys.version_info
is used, so
requires= ( 'python-2.3', )
just works.

Provides is of the same format as requires - but if it's not supplied,
a provides is generated by adding the version to each entry in packages,
or modules if packages isn't there.
Provides is currently only used in the PKG-INFO file. Shortly, PyPI
will grow the ability to accept these lines, and register will be
updated to send them.

There's a new command 'checkdep' command that runs these checks.
For this version, only greater-than-or-equal checking is done. We'll
add the ability to specify an optional operator later.
2004-03-22 22:22:05 +00:00
..
command Basic dependency checking. setup() has two new optional arguments 2004-03-22 22:22:05 +00:00
README Update file 2002-11-13 13:26:59 +00:00
__init__.py Add comment to Distutil files about requiring 1.5.2 compatibility, as 2002-11-19 13:12:28 +00:00
archive_util.py Bug #639118 from Ollie Oldham: archiver should use zipfile before zip 2002-11-21 18:33:28 +00:00
bcppcompiler.py Compile the files in the same order they are passed to the compiler. 2003-12-05 20:12:23 +00:00
ccompiler.py Compile the files in the same order they are passed to the compiler. 2003-12-05 20:12:23 +00:00
cmd.py Replace backticks with repr() or "%r" 2004-02-12 17:35:32 +00:00
core.py Basic dependency checking. setup() has two new optional arguments 2004-03-22 22:22:05 +00:00
cygwinccompiler.py Patch #709178: remove -static option from cygwinccompiler 2003-04-14 12:51:26 +00:00
debug.py Add comment to Distutil files about requiring 1.5.2 compatibility, as 2002-11-19 13:12:28 +00:00
dep_util.py Add comment to Distutil files about requiring 1.5.2 compatibility, as 2002-11-19 13:12:28 +00:00
dir_util.py Replace backticks with repr() or "%r" 2004-02-12 17:35:32 +00:00
dist.py Basic dependency checking. setup() has two new optional arguments 2004-03-22 22:22:05 +00:00
emxccompiler.py use same compiler switches as core for extensions 2003-12-02 12:17:59 +00:00
errors.py Add comment to Distutil files about requiring 1.5.2 compatibility, as 2002-11-19 13:12:28 +00:00
extension.py Remove the recently-added get_distutil_options(), and just 2003-01-27 16:30:36 +00:00
fancy_getopt.py Replace backticks with repr() or "%r" 2004-02-12 17:35:32 +00:00
file_util.py Add comment to Distutil files about requiring 1.5.2 compatibility, as 2002-11-19 13:12:28 +00:00
filelist.py Add comment to Distutil files about requiring 1.5.2 compatibility, as 2002-11-19 13:12:28 +00:00
log.py set_verbosity(): do something reasonable for out-of-range verbosity 2003-02-20 02:09:30 +00:00
msvccompiler.py Compile the files in the same order they are passed to the compiler. 2003-12-05 20:12:23 +00:00
mwerkscompiler.py Add comment to Distutil files about requiring 1.5.2 compatibility, as 2002-11-19 13:12:28 +00:00
spawn.py Make _spawn_posix be ready for EINTR. waitpid(2) can be interrupted 2004-02-24 23:54:17 +00:00
sysconfig.py Patch #812378: Normalize white space. 2003-10-24 20:09:23 +00:00
text_file.py Remove 'created by' lines; people can use CVS for this, and the information is often out of date 2002-11-14 02:25:42 +00:00
unixccompiler.py Fixed indentation error. Closes bug #746953. 2003-06-01 19:27:40 +00:00
util.py Replace backticks with repr() or "%r" 2004-02-12 17:35:32 +00:00
version.py Remove 'created by' lines; people can use CVS for this, and the information is often out of date 2002-11-14 02:25:42 +00:00

README

This directory contains only a subset of the Distutils, specifically
the Python modules in the 'distutils' and 'distutils.command'
packages.  This is all you need to distribute and install Python
modules using the Distutils.  There is also a separately packaged
standalone version of the Distutils available for people who want to
upgrade the Distutils without upgrading Python, available from the
Distutils web page:

    http://www.python.org/sigs/distutils-sig/

The standalone version includes all of the code in this directory,
plus documentation, test scripts, examples, etc.

The Distutils documentation is divided into two documents, "Installing
Python Modules", which explains how to install Python packages, and
"Distributing Python Modules", which explains how to write setup.py
files.  Both documents are part of the standard Python documentation
set, and are available from http://www.python.org/doc/current/ .

        Greg Ward (gward@python.net)

$Id$