summaryrefslogtreecommitdiffstats
path: root/Lib/distutils/dist.py
Commit message (Collapse)AuthorAgeFilesLines
* PEP 314 implementation (client side):Fred Drake2005-03-201-23/+86
| | | | added support for the provides, requires, and obsoletes metadata fields
* Patch #1104111: Alter setup.py --help and --help-commands.Martin v. Löwis2005-03-031-1/+10
|
* Update compatibility comments to 2.1, corresponding to PEP 291 1.13.Martin v. Löwis2004-11-101-1/+1
|
* oops. how did _that_ happen?Anthony Baxter2004-10-131-0/+1
|
* Backing out the basic dependency checking (from pycon sprint).Anthony Baxter2004-10-131-60/+1
| | | | | | This support was only a first cut, and doesn't deserve to be in a released version (where we have to support it in an ongoing manner)
* This allows additional commands to be provided for existing setup.pyFred Drake2004-08-031-22/+62
| | | | | | | | | | | | | | | | | scripts without modifying either the distutils installation or the setup.py scripts of packages with which the new commands will be used. Specifically, an option is added to distutils that allows additional packages to be searched for command implementations in addition to distutils.command. The additional packages can be specified on the command line or via the installation or personal configuration files already loaded by distutils. For discussion, see the thread starting with: http://mail.python.org/pipermail/distutils-sig/2004-August/004112.html This closes SF patch #102241.
* Whitespace normalization, via reindent.py.Tim Peters2004-07-181-2/+2
|
* Add support for package data.Fred Drake2004-06-111-0/+1
| | | | | | | This is basically the support for package data from Phillip Eby's setuptools package. I've changed it only to fit it into the core implementation rather than to live in subclasses, and added documentation.
* Basic dependency checking. setup() has two new optional argumentsAnthony Baxter2004-03-221-1/+59
| | | | | | | | | | | | | | | | | | | | | | | 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.
* commentary about how bad ConfigParser is doesn't help here, and theFred Drake2004-02-171-3/+1
| | | | | suggested approach to dealing with it isn't a good one; we need a better general purpose config reader, not a distutils-specific reader
* Replace backticks with repr() or "%r"Walter Dörwald2004-02-121-2/+2
| | | | From SF patch #852334.
* [Bug #693470] 'licence' as an alias for 'license' doesn't work.Andrew M. Kuchling2003-03-031-1/+10
| | | | This patch makes it work again.
* [Patch #683939] Add download_url field to metadataAndrew M. Kuchling2003-02-191-1/+8
|
* [Patch #658094] PEP 301 implementationAndrew M. Kuchling2003-01-031-1/+12
| | | | Add 'classifiers' keyword to DistributionMetadata
* Add comment to Distutil files about requiring 1.5.2 compatibility, asAndrew M. Kuchling2002-11-191-0/+2
| | | | suggested by PEP 291.
* Remove 'created by' lines; people can use CVS for this, and the information ↵Andrew M. Kuchling2002-11-141-3/+0
| | | | is often out of date
* Catch only ImportErrorAndrew M. Kuchling2002-10-311-1/+1
|
* Make the Distribution() constructor forgiving of unknown keywordAndrew M. Kuchling2002-10-311-2/+11
| | | | | | | | | | arguments, triggering a warning instead of raising an exception. (In 1.5.2/2.0, it will print to stderr.) Bugfix candidate for all previous versions. This changes behaviour, but the old behaviour wasn't very useful. If Distutils version X+1 adds a new keyword argument, using the new keyword means your setup.py file won't work with Distutils version X any more.
* Use distutils.debug.DEBUG instead of distutils.core.DEBUG.Jeremy Hylton2002-09-111-1/+1
| | | | | Note that distutils.core.DEBUG still works if client code uses it, but the core code avoids circular references by using distutils.debug.
* Use module-level import of DEBUG instead of many function-level imports.Jeremy Hylton2002-06-041-4/+1
|
* Make setup.py less chatty by default.Jeremy Hylton2002-06-041-10/+6
| | | | | | | | | | | | | | | This is a conservative version of SF patch 504889. It uses the log module instead of calling print in various places, and it ignores the verbose argument passed to many functions and set as an attribute on some objects. Instead, it uses the verbosity set on the logger via the command line. The log module is now preferred over announce() and warn() methods that exist only for backwards compatibility. XXX This checkin changes a lot of modules that have no test suite and aren't exercised by the Python build process. It will need substantial testing.
* Whitespace normalization.Fred Drake2001-12-061-14/+14
|
* Use a version number of 0.0.0 instead of ???. The latter leads toThomas Heller2001-12-061-1/+1
| | | | | | | | | | invalid filenames on Windows when building without specifying a version number in the setup script. See also http://mail.python.org/pipermail/distutils-sig/2001-November/002656.html Bugfix candidate.
* [Bug #459270] Fix incorrect docstringAndrew M. Kuchling2001-12-061-8/+5
|
* Don't use dir() to find instance attribute names.Neil Schemenauer2001-09-031-3/+7
|
* Wrap a comment to fit in 80 columns.Fred Drake2001-08-101-6/+6
| | | | | Use construction-syntax for an exception to make the argument easier to read.
* [Bug #412271, bug #449009] Use 'license' as the attribute name,Andrew M. Kuchling2001-08-101-11/+11
| | | | | | | though 'licence' is still supported for backward-compatibility (Should I add a warning to get_licence(), or not bother?) Also fixes an UnboundLocalError noticed by PyChecker
* Back out the requirement to supply a version numberAndrew M. Kuchling2001-03-311-4/+0
|
* Use the get_contact*() accessors instead of get_maintainer*()Andrew M. Kuchling2001-03-221-2/+2
|
* Add 'platforms' and 'keywords' attributes to the DistributionMetadata class,Andrew M. Kuchling2001-03-221-5/+70
| | | | | | | | along with options to print them. Add a finalize_options() method to Distribution to do final processing on the platform and keyword attributes Add DistributionMetadata.write_pkg_info() method to write a PKG-INFO file into the release tree.
* Bug #409403: Signal an error if the distribution's metadata has no versionAndrew M. Kuchling2001-03-171-0/+4
|
* Fix from Jack Jansen for the Mac and the Metrowerks compiler, postedAndrew M. Kuchling2001-01-151-6/+10
| | | | | to the Distutils-SIG and archived at http://mail.python.org/pipermail/distutils-sig/2000-November/001755.html
* Jack Jansen: added 'get_command_list()' method, and Mac-specific code toGreg Ward2000-11-111-0/+38
| | | | | use it to generate a dialog for users to specify the command-line (because providing a command-line with MacPython is so awkward).
* Untabified.Greg Ward2000-10-141-5/+5
|
* Fix '_set_command_options()' so it only calls 'strtobool()' on stringsGreg Ward2000-09-271-2/+3
| | | | (was crashing on any boolean command-line option!).
* Standardize whitespace in function calls and docstrings.Greg Ward2000-09-261-62/+62
|
* Change to use the new 'translate_longopt()' function from fancy_getopt, ratherGreg Ward2000-09-251-5/+5
| | | | than rolling our own with fancy_getopt's 'longopt_xlate' global.
* Fixed some bugs and mis-features in handling config files:Greg Ward2000-09-251-9/+44
| | | | | | | | | | | | | | | * options can now be spelled "foo-bar" or "foo_bar" (handled in 'parse_config_files()', just after we parse a file) * added a "[global]" section so there's a place to set global options like verbose/quiet and dry-run * respect the "negative alias" dictionary so (eg.) "quiet=1" is the same as "verbose=0" (this had to be done twice: once in 'parse_config_file()' for global options, and once in '_set_command_options()' for per-command options) * the other half of handling boolean options correctly: allow commands to list their boolean options in a 'boolean_options' class attribute, and use it to translate strings (like "yes", "1", "no", "0", etc) to true or false
* Remove some debugging output from the last change.Greg Ward2000-09-161-7/+0
|
* Generalized 'reinitialize_command()' so it can optionally reinitializeGreg Ward2000-09-161-2/+20
| | | | | | the command's sub-commands as well (off by default). This is essential if we want to be be able to run (eg.) "install" twice in one run, as happens when generating multiple built distributions in one run.
* Added 'script_name' and 'script_args' instance attributes to Distribution.Greg Ward2000-08-291-23/+29
| | | | | | | | Changed 'core.setup()' so it sets them to reasonable defaults. Tweaked how the "usage" string is generated: 'core' now provides 'gen_usage()', which is used instead of 'USAGE'. Modified "build_py" and "sdist" commands to refer to 'self.distribution.script_name' rather than 'sys.argv[0]'.
* Fixed a grab-bag of typos spotted by Rob Hooft.Greg Ward2000-07-271-2/+2
|
* fix inconsistent use of tabs and spacesJeremy Hylton2000-07-071-17/+17
|
* Typo fix.Greg Ward2000-06-281-1/+1
|
* More stylistic tweaks to the generic '--help-xxx' code.Greg Ward2000-06-241-12/+15
|
* Stylistic/formatting changes to Rene Liebscher's '--help-xxx' patch.Greg Ward2000-06-241-10/+27
|
* Patch from Rene Liebscher: this adds "--help-foo" options to list theGreg Ward2000-06-071-3/+29
| | | | | | | | | | values that "--foo" can take for various commands: eg. what formats for "sdist" and "bdist", what compilers for "build_ext" and "build_clib". I have *not* reviewed this patch; I'm checking it in as-is because it also fixes a paper-bag-over-head bug in bdist.py, and because I won't have time to review it properly for several days: so someone else can test it for me, instead!
* Always look for the system config file in the Distutils module directory,Greg Ward2000-06-071-9/+12
| | | | | and call it "distutils.cfg" instead of "pydistutils.cfg" (personal config files are still ".pydistutils.cfg" or "pydistutils.cfg", though).
* Patch from Rene Liebscher:Greg Ward2000-06-071-15/+16
| | | | | | | | Look for personal config file in /home/greg on Windows, too: users will have to set /home/greg to use this, so it's not something that many people will use. But if python-dev comes up with the "right way" to divine a home directory on Windows, we can use that to set /home/greg and poof! -- personal Distutils config files on Windows.
* Fix 'reinitialize_command()' so it resets the 'have_run' flag for theGreg Ward2000-06-061-0/+1
| | | | command being reinitialized to false.