summaryrefslogtreecommitdiffstats
path: root/Lib/distutils/command/install.py
Commit message (Collapse)AuthorAgeFilesLines
* Merged revisions 55007-55179 via svnmerge fromGuido van Rossum2007-05-071-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | svn+ssh://pythondev@svn.python.org/python/branches/p3yk ........ r55077 | guido.van.rossum | 2007-05-02 11:54:37 -0700 (Wed, 02 May 2007) | 2 lines Use the new print syntax, at least. ........ r55142 | fred.drake | 2007-05-04 21:27:30 -0700 (Fri, 04 May 2007) | 1 line remove old cruftiness ........ r55143 | fred.drake | 2007-05-04 21:52:16 -0700 (Fri, 04 May 2007) | 1 line make this work with the new Python ........ r55162 | neal.norwitz | 2007-05-06 22:29:18 -0700 (Sun, 06 May 2007) | 1 line Get asdl code gen working with Python 2.3. Should continue to work with 3.0 ........ r55164 | neal.norwitz | 2007-05-07 00:00:38 -0700 (Mon, 07 May 2007) | 1 line Verify checkins to p3yk (sic) branch go to 3000 list. ........ r55166 | neal.norwitz | 2007-05-07 00:12:35 -0700 (Mon, 07 May 2007) | 1 line Fix this test so it runs again by importing warnings_test properly. ........ r55167 | neal.norwitz | 2007-05-07 01:03:22 -0700 (Mon, 07 May 2007) | 8 lines So long xrange. range() now supports values that are outside -sys.maxint to sys.maxint. floats raise a TypeError. This has been sitting for a long time. It probably has some problems and needs cleanup. Objects/rangeobject.c now uses 4-space indents since it is almost completely new. ........ r55171 | guido.van.rossum | 2007-05-07 10:21:26 -0700 (Mon, 07 May 2007) | 4 lines Fix two tests that were previously depending on significant spaces at the end of a line (and before that on Python 2.x print behavior that has no exact equivalent in 3.0). ........
* Checkpoint. Manipulated things so that string literals are alwaysGuido van Rossum2007-04-271-1/+1
| | | | | | | | unicode, and a few other compensating changes, e.g. str <- unicode, chr <- unichr, and repr() of a unicode string no longer starts with 'u'. Lots of unit tests are broken, but some basic things work, in particular distutils works so the extensions can be built, and test_builtin.py works.
* Remove functions in string module that are also string methods. Also remove:Neal Norwitz2007-04-171-6/+6
| | | | | * all calls to functions in the string module (except maketrans) * everything from stropmodule except for maketrans() which is still used
* Fix most trivially-findable print statements.Guido van Rossum2007-02-091-3/+3
| | | | | | | | | There's one major and one minor category still unfixed: doctests are the major category (and I hope to be able to augment the refactoring tool to refactor bona fide doctests soon); other code generating print statements in strings is the minor category. (Oh, and I don't know if the compiler package works.)
* Merge p3yk branch with the trunk up to revision 45595. This breaks a fairThomas Wouters2006-04-211-0/+1
| | | | | | | | | | | | | | | | | | | | number of tests, all because of the codecs/_multibytecodecs issue described here (it's not a Py3K issue, just something Py3K discovers): http://mail.python.org/pipermail/python-dev/2006-April/064051.html Hye-Shik Chang promised to look for a fix, so no need to fix it here. The tests that are expected to break are: test_codecencodings_cn test_codecencodings_hk test_codecencodings_jp test_codecencodings_kr test_codecencodings_tw test_codecs test_multibytecodec This merge fixes an actual test failure (test_weakref) in this branch, though, so I believe merging is the right thing to do anyway.
* Fix [ 1103844 ] fix distutils.install.dump_dirs() with negated options.Thomas Heller2005-01-201-2/+7
| | | | Will backport myself.
* Update compatibility comments to 2.1, corresponding to PEP 291 1.13.Martin v. Löwis2004-11-101-1/+1
|
* Backing out the basic dependency checking (from pycon sprint).Anthony Baxter2004-10-131-12/+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/+1
|
* Make distutils "install --home" support all platforms.Fred Drake2004-06-251-17/+17
|
* Basic dependency checking. setup() has two new optional argumentsAnthony Baxter2004-03-221-1/+12
| | | | | | | | | | | | | | | | | | | | | | | 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.
* 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
* Use distutils.debug.DEBUG instead of distutils.core.DEBUG.Jeremy Hylton2002-09-111-1/+2
| | | | | Note that distutils.core.DEBUG still works if client code uses it, but the core code avoids circular references by using distutils.debug.
* Move warning about directory not on sys.path to debug level.Jeremy Hylton2002-06-041-8/+10
| | | | Fix a bunch of multiline string constants that used +.
* Revert part of previous patch: several install_* subcommands expectAndrew M. Kuchling2002-03-221-1/+1
| | | | | | | | .compile to be None, and set it to true if it is. Caught by Pearu Peterson. Bugfix candidate, if the previous change is accepted for release22-maint.
* Add missing Boolean optionsAndrew M. Kuchling2002-03-211-3/+2
| | | | | | | Remove unused no_compile flag Initialize the Boolean attribute .compile to 0 instead of None Bugfix candidate.
* OS/2 patches by Andrew I MacIntyre for distutils.Marc-André Lemburg2002-01-311-0/+7
| | | | Closes patch #435381.
* Whitespace normalization.Fred Drake2001-12-061-5/+5
|
* [Bug #436732] install.py does not record a created *.pth file in theAndrew M. Kuchling2001-09-041-2/+5
| | | | | INSTALLED_FILES output. Modified version of a patch from Jon Nelson (jnelson)
* Patch #449054 to implement PEP 250. The standard install directory forGreg Ward2001-08-231-7/+18
| | | | | | modules and extensions on Windows is now $PREFIX/Lib/site-packages. Includes backwards compatibility code for pre-2.2 Pythons. Contributed by Paul Moore.
* Add forgotten importAndrew M. Kuchling2001-08-101-0/+1
|
* Modified version of a patch from Jeremy Kloth, to make .get_outputs()Andrew M. Kuchling2001-01-161-1/+5
| | | | | | | produce a list of unique filenames: "While attempting to build an RPM using distutils on Python 2.0, rpm complained about duplicate files. The following patch fixed that problem.
* Add forgotten initialization. Fixes bug #120994, "Traceback withAndrew M. Kuchling2000-12-201-0/+1
| | | | DISTUTILS_DEBUG set"
* Untabified.Greg Ward2000-10-141-1/+1
|
* Lyle Johnson: use 'normcase()' in addition to 'normpath()' when testing ifGreg Ward2000-10-141-2/+4
| | | | we actually installed modules to a directory in sys.path.
* Fixed so --no-compile is a negative alias for --compile.Greg Ward2000-10-031-0/+1
|
* Added --compile, --optimize options so users have an easy way toGreg Ward2000-10-021-0/+12
| | | | instruct the "install_lib" command from the command-line.
* Standardized whitespace around function calls.Greg Ward2000-09-301-56/+56
|
* Moved some things around for better organization.Greg Ward2000-09-301-26/+36
|
* Added 'boolean_options' list to support config file parsing.Greg Ward2000-09-251-0/+2
|
* Changed all paths in the INSTALL_SCHEMES dict to Unix syntax, and addedGreg Ward2000-09-221-43/+56
| | | | | | | | | | | | | | | | | | | | | | | 'convert_paths()' method to convert them all to the local syntax (backslash or colon or whatever) at the appropriate time. Added SCHEME_KEYS to get rid of one hard-coded list of attributes (in 'select_scheme()'). Default 'install_path_file' to true, and never set it false (it's just there in case some outsider somewhere wants to disable installation of the .pth file for whatever reason). Toned down the warning emitted when 'install_path_file' is false, since we no longer know why it might be false. Added 'warn_dir' flag to suppress warning when installing to a directory not in sys.path (again, we never set this false -- it's there for outsiders to use, specifically the "bdist_*" commands). Pulled the loop of 'change_root()' calls out to new method 'change_roots()'. Comment updates/deletions/additions.
* Factored the "sub-command" machinery out to Command. Mainly, thisGreg Ward2000-09-161-25/+10
| | | | | meant removing 'get_sub_commands()', and moving the 'sub_commands' class attribute to the end and restructuring it to conform to the new regime.
* Typo fix.Greg Ward2000-09-161-1/+1
|
* Adjust to the new sysconfig regime: use 'get_config_vars()' insteadGreg Ward2000-09-151-3/+6
| | | | | | | of globals from sysconfig. Added 'prefix' and 'exec_prefix' to the list of variables that can be expanded in installation directories (preserving the stupid old names of 'sys_prefix' and 'sys_exec_prefix, though).
* Added --force (-f) option to force installation (including bytecodeGreg Ward2000-09-131-2/+4
| | | | compilation).
* Fix install directories on Mac OS: now everything goes toGreg Ward2000-09-131-2/+2
| | | | <prefix>:Lib:site-packages.
* Fix so the 'install_libbase' directory -- where .pth files are installed --Greg Ward2000-08-071-1/+1
| | | | | | participates in the "--root" hack, ie. it also has a new root directory hacked on at the very last minute (essential if the .pth file is to be included in an RPM or other smart installer!).
* Fixed imports from '*util' modules to not just import everything from util.Greg Ward2000-08-051-1/+2
|
* Changed the default installation directory for data files (used byGreg Ward2000-06-241-4/+4
| | | | | | the "install_data" command to the installation base, which is usually just sys.prefix. (Any setup scripts out there that specify data files will have to set the installation directory, relative to the base, explicitly.)
* Rene Liebscher: when fixing up directories with an alternate root, includeGreg Ward2000-06-211-1/+2
| | | | 'install_headers'.
* Fixed install directory for header files on Unix.Greg Ward2000-06-171-1/+1
|
* Renamed 'native_path()' to 'convert_path()'.Greg Ward2000-05-311-2/+2
| | | | | Also changed it so it doesn't barf if the path is already in native format (ie. contains os.sep).
* Only print debugging output if DEBUG (imported from distutils.core) is true.Greg Ward2000-05-281-14/+15
|
* Some far-reaching naming changes:Greg Ward2000-05-271-4/+4
| | | | | | | * Command method 'find_peer()' -> 'get_finalized_command()' * Command method 'run_peer()' -> 'run_command()' Also deleted the 'get_command_option()' method from Command, and fixed the one place where it was used (in "bdist_dumb").
* Support for the "install_headers" command:Greg Ward2000-05-271-5/+22
| | | | | | | | | | | | | * 'headers' entry added to all the install schemes * '--install-headers' option added * 'install_headers' added to 'sub_commands' * added 'dist_name' to configuration variables (along with a few others that seem handy: 'dist_version', 'dist_fullname', and 'py_version' * in 'finalize_unix()', make sure 'install_headers' defined if user specified 'install_base' and/or 'install_platbase' * added 'has_headers()' * a few other small changes
* Normalized all the end-of-class lines.Greg Ward2000-05-251-1/+1
|
* Changed the semantics of the 'sub_commands' list: instead of functionGreg Ward2000-05-201-21/+44
| | | | | | | | | objects, it now has method names. Added three methods, 'has_lib()', 'has_scripts()', and 'has_data()' to determine if we need to run each of the three possible sub-commands. Added 'get_sub_commands()' to take care of finding the methods named in 'sub_commands', running them, and interpreting the results to build a list of sub-commands that actually have to be run.
* Made the '--record' option take an argument, which is the name of theGregory P. Smith2000-05-131-4/+5
| | | | file to write the list of installed files to.
* Ditch the explicit search for *.py[co] files -- they're now included inGregory P. Smith2000-05-131-6/+1
| | | | | the list returned by 'get_outputs()', thanks to changes in the "install_lib" command.