summaryrefslogtreecommitdiff
path: root/Lib/distutils/command/install_scripts.py
AgeCommit message (Collapse)AuthorLines
2002-11-29Fix mode on scripts to have the read bit set (noted by Nicholas Riley)Andrew M. Kuchling-1/+1
2002-11-19Add comment to Distutil files about requiring 1.5.2 compatibility, asAndrew M. Kuchling-0/+2
suggested by PEP 291.
2002-06-04Fix bug in recent change to logging code.Jeremy Hylton-1/+1
mode is not computed in dry_run mode, so it can't be included in the log message.
2002-06-04Make setup.py less chatty by default.Jeremy Hylton-2/+3
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.
2002-01-31Restrict the mode to the lowest four octal positions; higher positionsAndrew M. Kuchling-1/+1
contain the type of the file (regular file, socket, link, &c.). This means that install_scripts will now print "changing mode of <file> to 775" instead of "... to 100775". 2.2 bugfix candidate, I suppose, though this isn't actually fixing a bug.
2000-09-30Standardized whitespace around function calls.Greg Ward-5/+5
2000-09-25Added 'boolean_options' list to support config file parsing.Greg Ward-0/+3
2000-09-13Added --force (-f) option to force installation (including bytecodeGreg Ward-1/+4
compilation).
2000-05-27Some far-reaching naming changes:Greg Ward-1/+1
* 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").
2000-05-27Tweaked description, help text.Greg Ward-3/+3
2000-05-25Bastian Kleineidam: the "build_scripts" command and changesGreg Ward-6/+25
necessary to support it. Details: - build command additionally calls build_scripts - build_scripts builds your scripts in 'build/scripts' and adjusts the first line if it begins with "#!" and ends with "python", optionally ending with commandline options (like -O, -t ...). Adjusting means we write the current path to the Python interpreter in the first line. - install_scripts copies the scripts to the install_scripts dir - install_data copies your data_files in install_data. You can supply individual directories for your data_files: data_files = ['doc/info.txt', # copy this file in install_scripts dir ('testdata', ['a.dat', 'b.dat']), # copy these files in # install_scripts/testdata ('/etc', ['packagerc']), # copy this in /etc. When --root is # given, copy this in rootdir/etc ] So you can use the --root option with absolute data paths.
2000-05-13Added 'get_inputs()' methods, needed by the "install" command'sGregory P. Smith-0/+3
'get_inputs()'.
2000-05-12Added comment/docstring/revision header.Gregory P. Smith-0/+9
2000-05-12Deleted some cruft.Gregory P. Smith-5/+15
Caught up with renaming in 'install_misc' base class. Changed 'run()' to chmod installed scripts under Unix.
2000-05-12Patch from Bastien Kleineidam:Gregory P. Smith-0/+16
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.)