mirror of https://github.com/python/cpython
05f842bae2
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. |
||
---|---|---|
.. | ||
command | ||
README | ||
__init__.py | ||
archive_util.py | ||
bcppcompiler.py | ||
ccompiler.py | ||
cmd.py | ||
core.py | ||
cygwinccompiler.py | ||
debug.py | ||
dep_util.py | ||
dir_util.py | ||
dist.py | ||
emxccompiler.py | ||
errors.py | ||
extension.py | ||
fancy_getopt.py | ||
file_util.py | ||
filelist.py | ||
log.py | ||
msvccompiler.py | ||
mwerkscompiler.py | ||
spawn.py | ||
sysconfig.py | ||
text_file.py | ||
unixccompiler.py | ||
util.py | ||
version.py |
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$