summaryrefslogtreecommitdiffstats
path: root/Lib/distutils/core.py
Commit message (Collapse)AuthorAgeFilesLines
* Restore missing part of error message (#4931)Éric Araujo2014-03-121-1/+1
|
* Avoid “error: None” messages from distutils (#4931).Éric Araujo2014-03-121-5/+2
| | | | Thanks to Amaury Forgeot d’Arc and Philip J. Eby.
* Merged revisions 86223-86224,86226,86234 via svnmerge fromÉric Araujo2010-11-061-1/+5
| | | | | | | | | | | | | | | | | | | | | | svn+ssh://pythondev@svn.python.org/python/branches/py3k ........ r86223 | eric.araujo | 2010-11-06 00:51:56 +0100 (sam., 06 nov. 2010) | 2 lines Always close files in distutils code and tests (#10252). ........ r86224 | eric.araujo | 2010-11-06 00:58:34 +0100 (sam., 06 nov. 2010) | 2 lines Add missing entry for r86223. ........ r86226 | eric.araujo | 2010-11-06 00:59:32 +0100 (sam., 06 nov. 2010) | 2 lines Of course, I forgot one file in r86223. ........ r86234 | eric.araujo | 2010-11-06 03:10:32 +0100 (sam., 06 nov. 2010) | 2 lines Also close file descriptors from os.popen and subprocess.Popen ........
* taking sysconfig out of distutilsTarek Ziadé2010-01-231-1/+1
|
* massive import cleaning in DistutilsTarek Ziadé2009-12-211-10/+7
|
* Fixed #1180: Option to ignore ~/.pydistutils.cfg in DistutilsTarek Ziadé2009-10-271-2/+3
|
* Fixed #3987 : removed unused importTarek Ziadé2009-02-061-1/+0
|
* Issue #5052: removed backward compatibility information (out of date)Tarek Ziadé2009-01-251-2/+0
|
* Restore Python 2.3 compatibility and remove "with" usage.Marc-André Lemburg2008-08-181-2/+1
|
* Update distutils so that it triggers no warnings when run under -3.Brett Cannon2008-08-171-1/+2
|
* #1858: re-apply patch for this, adding the missing filesAndrew M. Kuchling2008-05-111-0/+1
|
* Revert r62998 as it broke the build (seems distutils.config is missing).Brett Cannon2008-05-101-1/+0
|
* #1858 from Tarek Ziade:Andrew M. Kuchling2008-05-101-0/+1
| | | | | | | | | Allow multiple repositories in .pypirc; see http://wiki.python.org/moin/EnhancedPyPI for discussion. The patch is slightly revised from Tarek's last patch: I've simplified the PyPIRCCommand.finalize_options() method to not look at sys.argv. Tests still pass.
* my previous change did what I said it should not: it changed the currentFred Drake2008-04-041-1/+0
| | | | | | | directory to the directory in which the setup.py script lived (which made __file__ wrong) fixed, with test that the script is run in the current directory of the caller
* - Issue #2385: distutils.core.run_script() makes __file__ available, so theFred Drake2008-04-041-1/+2
| | | | | controlled environment will more closely mirror the typical script environment. This supports setup.py scripts that refer to data files.
* Removed uses of dict.has_key() from distutils, and uses ofGuido van Rossum2008-02-211-3/+3
| | | | | | callable() from copy_reg.py, so the interpreter now starts up without warnings when '-3' is given. More work like this needs to be done in the rest of the stdlib.
* PEP 314 implementation (client side):Fred Drake2005-03-201-1/+3
| | | | added support for the provides, requires, and obsoletes metadata fields
* Update compatibility comments to 2.1, corresponding to PEP 291 1.13.Martin v. Löwis2004-11-101-1/+1
|
* Patch 1046644 - improved distutils support for SWIG.Anthony Baxter2004-10-141-1/+1
|
* Backing out the basic dependency checking (from pycon sprint).Anthony Baxter2004-10-131-2/+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)
* Whitespace normalization, via reindent.py.Tim Peters2004-07-181-1/+0
|
* Basic dependency checking. setup() has two new optional argumentsAnthony Baxter2004-03-221-1/+2
| | | | | | | | | | | | | | | | | | | | | | | 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.
* Replace backticks with repr() or "%r"Walter Dörwald2004-02-121-1/+1
| | | | From SF patch #852334.
* [Patch #683939] Add download_url field to metadataAndrew M. Kuchling2003-02-191-1/+1
|
* Remove the recently-added get_distutil_options(), and justAndrew M. Kuchling2003-01-271-8/+13
| | | | have two tuples listing the legal keywords for setup() and Extension()
* 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-2/+0
| | | | is often out of date
* [Bug #233259] Ugly traceback for DistutilsPlatformErrorAndrew M. Kuchling2002-11-081-3/+1
| | | | | | Fixed by catching all exceptions that are subclasses of DistutilsError, so only the error message will be printed. You can still get the whole traceback by enabling the Distutils debugging mode.
* Fix a small bug when sys.argv[0] has an absolute path.Thomas Heller2002-11-071-1/+1
| | | | See http://mail.python.org/pipermail/distutils-sig/2002-November/003039.html
* Add get_distutil_options(); future setup.py files can use this to checkAndrew M. Kuchling2002-11-041-0/+9
| | | | | | | | whether the Distutils being used supports a particularly capability. (This idea was originally suggested by Juergen Hermann as a method on the Distribution class. I think it makes more sense as a function in core.py, and that's what this patch implements.)
* Use distutils.debug.DEBUG instead of distutils.core.DEBUG.Jeremy Hylton2002-09-111-5/+1
| | | | | Note that distutils.core.DEBUG still works if client code uses it, but the core code avoids circular references by using distutils.debug.
* Define DEBUG as early as possible to avoid import problems.Jeremy Hylton2002-06-041-5/+5
|
* Fix unused local variables caught by pychecker.Jeremy Hylton2002-06-041-3/+1
| | | | | Fixes a bug for Solaris pkgtool (bdist_pkgtool) that would have prevented it from building subpackages.
* Make setup.py less chatty by default.Jeremy Hylton2002-06-041-1/+5
| | | | | | | | | | | | | | | 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-2/+2
|
* Standardize whitespace in function calls.Greg Ward2000-09-261-3/+3
|
* Added 'run_setup()' to allow outsiders to run a setup script underGreg Ward2000-09-011-1/+89
| | | | | | | | | | | fairly tight control, and the '_setup_stop_after' and '_setup_distribution' globals to provide the tight control. This isn't entirely reliable yet: it dies horribly with a NameError on the example PIL setup script in examples/pil_setup.py (at least with Python 1.5.2; untested with current Python). There's some strangeness going on with execfile(), but I don't understand it and don't have time to track it down right now.
* Added 'script_name' and 'script_args' instance attributes to Distribution.Greg Ward2000-08-291-12/+22
| | | | | | | | 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]'.
* Oops, import 'grok_environment_error()'.Greg Ward2000-06-211-0/+1
|
* Changed to use the new 'grok_environment_error()' function instead ofGreg Ward2000-06-171-10/+1
| | | | muddling through IOError and OSError exception objects right here.
* Catch DistutilSetupError from the Distribution constructor.Greg Ward2000-06-031-1/+4
|
* Use Distribution method 'dump_option_dicts()' for debugging output, and onlyGreg Ward2000-06-021-6/+6
| | | | do so if DEBUG is true.
* Reformatted and updated many docstrings.Greg Ward2000-06-021-31/+33
|
* Import the new Extension class, so setup scripts canGreg Ward2000-05-311-0/+4
| | | | "from distutils.core import" it.
* Catch CCompiler exceptions in 'setup()'.Greg Ward2000-05-301-1/+2
|
* Added the DEBUG global (set from the DISTUTILS_DEBUG environment variable).Greg Ward2000-05-261-6/+19
| | | | | Changed the exception-handling code in 'setup()' to re-raise exceptions if DEBUG is true.
* Added some debuging output (actually moved here from dist.py) --Greg Ward2000-05-231-0/+8
| | | | | dump the Distribution's 'command_options' dict after parsing config files, and then after parsing the command line.
* Tweaked usage message.Greg Ward2000-05-231-2/+2
|
* Call 'parse_config_files()' at the appropriate point.Gregory P. Smith2000-05-121-7/+7
| | | | Tweaked error-generating code.
* Merged in code from the 0.1.5 release to handle IOError and OSErrorGreg Ward2000-04-221-6/+12
| | | | exceptions better.