- 25 May, 2000 5 commits
-
-
Greg Ward authored
'install_misc' class.
-
Greg Ward authored
its 'scripts' attribute.
-
Greg Ward authored
-
Greg Ward authored
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.
-
Greg Ward authored
-
- 23 May, 2000 10 commits
-
-
Greg Ward authored
DistutilsPlatformError: "invalid Python installation". (This will happen on Red Hat-ish systems where the python-devel package is not installed.)
-
Greg Ward authored
before setting it -- this will catch bad options (eg. typos) in config files.
-
Greg Ward authored
dump the Distribution's 'command_options' dict after parsing config files, and then after parsing the command line.
-
Greg Ward authored
after all -- turns out it doesn't buy us much after all...
-
Greg Ward authored
* 'get_command_obj()' now sets command attributes based on the 'command_options' dictionary * some typos fixed * kludged 'parse_config_files()' to re-initialize the ConfigParser instance after each file, so we know for sure which config file each option comes form * added lots of handy debugging output
-
Greg Ward authored
-
Greg Ward authored
-
Greg Ward authored
in the option list is an attribute of the OptionDummy that will be initialized to None.
-
Greg Ward authored
-
Greg Ward authored
command-line parsing code, splitting it up into several methods (new methods: '_parse_command_opts()', '_show_help()') and making it put options into the 'command_options' dictionary rather than instantiating command objects and putting them there. Lots of other little changes: * merged 'find_command_class()' and 'create_command_obj()' and called the result 'get_command_class()' * renamed 'find_command_obj()' to 'get_command_obj()', and added command object creation and maintenance of the command object cache to its responsibilities (taken over from 'create_command_obj()') * parse config files one-at-a-time, so we can keep track of the filename for later error reporting * tweaked some help messages * fixed up many obsolete comments and docstrings
-
- 20 May, 2000 7 commits
-
-
Greg Ward authored
destination path, otherwise show just the directory.
-
Greg Ward authored
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.
-
Greg Ward authored
have any Python modules to install (rather than bomb when we try to copy a non-existent directory).
-
Greg Ward authored
-
Greg Ward authored
-
Greg Ward authored
implemented by subclasses, since they are needed by 'gen_lib_options()'.
-
Greg Ward authored
and 'link_shared_lib()'. In MSVCCompiler, this is meaningful: it adds /EXPORT: options to the linker command line. In UnixCCompiler, it is ignored.
-
- 13 May, 2000 18 commits
-
-
Gregory P. Smith authored
Added some guiding comments.
-
Gregory P. Smith authored
-
Gregory P. Smith authored
(Completely uninspected and untested by me, this is just to get the code into CVS!)
-
Gregory P. Smith authored
have to worry about "or []" in 'get_outputs()'.
-
Gregory P. Smith authored
rather than 'data'.
-
Gregory P. Smith authored
-
Gregory P. Smith authored
'get_inputs()'.
-
Gregory P. Smith authored
new flexibility, specifically the 'root' option. Now, we just use "install" to do a fake installation into a temporary directory (the 'bdist_dir' option, which derives from the 'bdist_base' option of "bdist"), and then tar/zip up that directory. This means that dumb built distributions are now relative to the root directory, rather than the prefix or exec-prefix; this is probably a feature, but does make them slightly less flexible.
-
Gregory P. Smith authored
"bdist" command rather than "build".
-
Gregory P. Smith authored
-
Gregory P. Smith authored
file to write the list of installed files to.
-
Gregory P. Smith authored
the list returned by 'get_outputs()', thanks to changes in the "install_lib" command.
-
Gregory P. Smith authored
to ensure that compiled bytecode files are considered part of the output of the "install_lib" command.
-
Gregory P. Smith authored
last (after writing list of installed files) -- that way, the warning is more visible.
-
Gregory P. Smith authored
installed files to INSTALLED_FILES.
-
Gregory P. Smith authored
top-level temporary directory for creating built distributions. (Won't work yet, since the "build" command doesn't yet have a 'build_bdist' option, and none of the "bdist" commands support it yet.)
-
Gregory P. Smith authored
variable. (Is this really needed? Can we drop it when the config file mechanism allows users to set compiler flags in setup.cfg?)
-
Gregory P. Smith authored
the 'no_format_option' class attribute.
-