- 31 May, 2000 3 commits
-
-
Greg Ward authored
"from distutils.core import" it.
-
Greg Ward authored
setup script) to be a list of Extension instances, rather than a list of of (ext_name, build_info) tuples. This is mostly a simplification, but 'check_extension_list()' got a lot more complicated because of the need to convert the old-style tuples to Extension instances. Temporarily dropped support for defining/undefining macros in the 'extensions' list -- I want to change the interface, but haven't yet made the required changes in CCompiler and friends to support this nicely. Also neatened up the code that merges 'extra_compile_flags' and the CFLAGS environment variable.
-
Greg Ward authored
the old (ext_name, build_info) tuple.
-
- 30 May, 2000 6 commits
- 28 May, 2000 5 commits
-
-
Greg Ward authored
-
Greg Ward authored
Added 'reinitialize_command()' -- lets us "push" option values in a controlled, safe way; this is a small change to the code, but a big change to the Distutils philosophy of passing option values around. The preferred mode is still definitely to "pull" options from another command (eg. "install" fetches the base build directory from "build"), but it is now feasible to "push" options onto another command, when you know what's best for it. One possible application will be a "config" command, which pokes around the system and pushes values (eg. include and library directories) onto the "build" command. Added 'dump_option_dicts()' method (for debugging output).
-
Greg Ward authored
-
Greg Ward authored
-
Greg Ward authored
Added a warning for 'bdist_base' directory.
-
- 27 May, 2000 7 commits
-
-
Greg Ward authored
* 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").
-
Greg Ward authored
directories after all is said and done, so we don't accidentally include those files in the source distribution. (This is the quick and easy way to fix this; Andrew says: "Changing findall() looked like it was going to be messy, so I tried this instead. The only problem is that redundant directory traversals are being done, walking through build/ only to throw out all the files found at the end.").
-
Greg Ward authored
and method 'has_headers()'.
-
Greg Ward authored
bug when adding new code, so I thought I'd make it blow up earlier than deep in posix.py.
-
Greg Ward authored
-
Greg Ward authored
* '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
-
Greg Ward authored
-
- 26 May, 2000 4 commits
-
-
Greg Ward authored
up-to-date with respect to the source files; that way, we don't needlessly rebuild just because object files go away.
-
Greg Ward authored
dictionaries in 'self.command_options' to 'get_option_dict()'. Simplified code in 'parse_config_files()' and 'parse_command_line()' accordingly. Fixed code in constructor that processes the 'options' dictionary from the setup script so it actually works: uses the new 'self.command_options' dictionary rather than creating command objects and calling 'set_option()' on them.
-
Greg Ward authored
Changed the exception-handling code in 'setup()' to re-raise exceptions if DEBUG is true.
-
Greg Ward authored
attempt to verify the bold assertions in the documentation): * entries for the "root package" in 'package_dir' didn't work -- fixed by improving the fall-through code in 'get_package_dir()' * __init__.py files weren't installed when modules-in-packages were listed individually (ie. in 'py_modules' in the setup script); fixed by making 'check_package()' return the name of the __init__ file if it exists, and making 'find_modules()' add an entry to the module list for __init__ if applicable
-
- 25 May, 2000 8 commits
-
-
Greg Ward authored
-
Greg Ward authored
-
Greg Ward authored
* 'first_line_re' loosened up * command description improved * replaced '_copy_files()' and '_adjust_files()' with one method that does everything, 'copy_scripts()' -- this should be more efficient than Bastian's version, should behave better in dry-run mode, and does timestamp dependency-checking
-
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 7 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
-