summaryrefslogtreecommitdiffstats
path: root/Lib/distutils/command/install.py
Commit message (Collapse)AuthorAgeFilesLines
...
* 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.
* Moved check for installation to non-sys.path location so it comesGregory P. Smith2000-05-131-9/+9
| | | | | last (after writing list of installed files) -- that way, the warning is more visible.
* Harry Henry Gebel: add the "--record" option to write the list ofGregory P. Smith2000-05-131-1/+21
| | | | installed files to INSTALLED_FILES.
* Fixed 'select_scheme()' so it doesn't override a directory attribute that'sGregory P. Smith2000-05-121-1/+3
| | | | already been set (eg. by a command-line option).
* Added --skip-build option, so lazy debuggers/testers (mainly me) don'tGregory P. Smith2000-05-121-2/+13
| | | | have to wade through all the 'build' output when testing installation.
* Patch from Bastien Kleineidam:Gregory P. Smith2000-05-121-1/+4
| | | | | | adds the 'install_data' and 'install_scripts' commands; these two are trivial thanks to the 'install_misc' base class in cmd.py. (Minor tweaks and commentary by me; the code is untested so far.)
* Added the "--root" option as a sort of meta-install-base; if supplied,Greg Ward2000-04-271-11/+31
| | | | | | it is forcibly prepended onto all installation directories, even if they are already absolute. Added 'dump_dirs()' to clean up the debug output a bit.
* Hacked things up a bit so that configuration variables are expandedGreg Ward2000-04-261-27/+52
| | | | | | | | | | | | | | | | | | in command-line options, and in two phases at that: first, we expand 'install_base' and 'install_platbase', and then the other 'install_*' options. This lets us do tricky stuff like install --prefix='/tmp$sys_prefix' ...oooh, neat. Simplified 'select_scheme()' -- it's no longer responsible for expanding config vars, tildes, etc. Define installation-specific config vars in 'self.config_vars', rather than in a local dictionary of one method. Also factored '_expand_attrs()' out of 'expand_dirs()' and added 'expand_basedirs()'. Added a bunch of debugging output so I (and others) can judge the success of this crazy scheme through direct feedback.
* Fixed 'get_outputs()' so it actually works.Greg Ward2000-03-311-4/+16
| | | | | Added 'get_inputs()' (which is strikingly similar to 'get_outputs()' - sigh). Cosmetic tweaks.
* Changed so the sub-commands we rely on to do the real work is specifiedGreg Ward2000-03-291-4/+24
| | | | | | | in a class attribute 'sub_commands', rather than hard-coded in 'run()'. This should make it easier to subclass 'install', and also makes it easier to keep 'run()' and the new 'get_outputs()' consistent. Added 'get_outputs()' in preparation for the 'bdist' command.
* Revised tons of comments to reflect the current state of affairs better.Greg Ward2000-03-221-72/+39
| | | | Deleted some crufty code.
* Run 'install_lib' instead of 'install_py', and ditch 'install_ext'Greg Ward2000-03-221-13/+4
| | | | completely (was already commented-out).
* Dropped any notion of allowing the user to specify the build directories:Greg Ward2000-03-221-13/+10
| | | | | | | these must come from the 'build' command. This means we no longer need the misconceived 'set_peer_option()' method in Command and, more importantly, sweeps away a bunch of potential future complexity to handle this tricky case.
* Yet another complete rewrite. Hopefully the *last* complete rewrite ofGreg Ward2000-03-221-129/+299
| | | | | | | | | | | | this command for a while; this implements roughly the plan cooked up by Guido, Fred, and me. Seems to strike a nice balance between usability in the common cases (just set one option), expandability for more types of files to install in future, and customizability of installation directories. This revision isn't completely working: standard and alternate installations work fine, but there are still some kinks to work out of customized installations.
* Changed '__rcsid__' to '__revision__'.Greg Ward2000-03-021-1/+1
|
* Unfinished, untested implementation of the lovely baroque installation schemeGreg Ward2000-02-261-154/+105
| | | | | cooked up by Fred Drake and me. Only saved for posterity (whoever posterity is), as it is about to be ditched in favour of GvR's much simpler design.
* Renamed 'set_default_options()' to 'initialize_options()', andGreg Ward2000-02-181-3/+3
| | | | 'set_final_options()' to 'finalize_options()'.
* Renamed all 'options' class attributes to 'user_options'.Greg Ward2000-02-181-36/+37
|
* Renamed all command classes so they're exactly the same as the name of theGreg Ward2000-02-181-1/+1
| | | | | command itself: no more of this "FooBar class for foo_bar command" silliness.
* Added 'description' class attribute to every command class (to help theGreg Ward2000-01-301-1/+4
| | | | | | | '--help-commands' option). Shuffled imports around in a few command modules to avoid expensive up-front import of sysconfig (and resulting delays in generating list of all commands).
* Always run sys.prefix and sys.exec_prefix through 'os.path.normpath()'Greg Ward2000-01-171-4/+4
| | | | before storing or using.
* Renamed many options to be consistent across commands.Greg Ward1999-09-291-9/+7
| | | | | | Tweaked some help strings to be consistent with documentation. Don't call 'set_final_options()' in 'run()' anymore -- that's now guaranteed to be taken care of for us by the Distribution instance.
* Added 'install_path' option for giving non-packagized moduleGreg Ward1999-09-211-12/+82
| | | | | | | | | | | distributions their own directory (and .pth file). Overhauled how we determine installation directories in 'set_final_options()' to separate platform-dependence and take 'install_path' option into account. Added 'create_path_file()' to create path config file when 'install_path' given. Only run 'install_py' and 'install_ext' when, respectively, there are some pure Python modules and some extension modules in the distribution.
* Straightened up the selection of installation directories for platform-Greg Ward1999-09-131-31/+21
| | | | | | specific files; it was somewhat broken, and the comments were dead wrong. Now runs 'install_ext' command after 'install_py'.
* Oops, call 'os.path.join()'!Greg Ward1999-08-191-1/+1
|
* Added a self-berating command relating to installation directories forGreg Ward1999-07-101-0/+8
| | | | module distributions that contain platform-specific files.
* Hacked 'set_final_options()' to set (hopefully) appropriate values forGreg Ward1999-06-081-7/+56
| | | | | | | 'install_site_lib' and install_site_platlib' on non-POSIX platforms. Should at least work for NT, as this is adopted from Amos Latteier's NT patches. Also added extensive comments bitching about the inadequacy of the current model, both under POSIX and NT (and probably other) systems.
* Rearranged things so that compilation of .py files is the responsibilityGreg Ward1999-05-021-0/+6
| | | | | | | | | of the 'install_py' command rather than 'build_py'. Obviously, this meant that the 'build_py' and 'install_py' modules had to change; less obviously, so did 'install' and 'build', since these higher-level commands must make options available to control the lower-level commands, and some compilation-related options had to migrate with the code.
* First checkin of real Distutils command modules.Greg Ward1999-03-221-0/+189