| Commit message (Collapse) | Author | Age | Files | Lines |
| ... | |
| |
|
|
| |
via an 'extra_compile_args' option in the 'build_info' dictionary.
|
| |
|
|
|
|
| |
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.
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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.
|
| | |
|
| |
|
|
| |
options.
|
| |
|
|
| |
Fix 'sdist.write_manifest()' to respect the value of dry_run.
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Adds bztar format to generate .tar.bz2 tarballs
Uses the -f argument to overright old tarballs automatically, I am
assuming that if the old tarball was wanted it would have been moved or
else the version number would have been changed.
Uses the -9 argument to bzip2 and gzip to use maximum
compression. Compress uses the maximum compression by default.
Tests for correct value for the 'compress' argument of make_tarball. This
is one less place for someone adding new compression programs to forget to
change.
|
| | |
|
| | |
|
| |
|
|
|
| |
object, rather than through the distribution itself (since I moved the meta-
data out to a DistributionMetadata instance).
|
| |
|
|
| |
for all commands except 'prune' and 'graft'.
|
| |
|
|
|
|
|
|
|
|
|
|
|
| |
- DistutilsOptionError is now documented as it's actually used, ie.
to indicate bogus option values (usually user options, eg. from
the command-line)
- added DistutilsSetupError to indicate errors that definitely arise
in the setup script
- got rid of DistutilsValueError, and changed all usage of it to
either DistutilsSetupError or ValueError as appropriate
- simplified a bunch of option get/set methods in Command and
Distribution classes -- just pass on AttributeError most of
the time, rather than turning it into something else
|
| |
|
|
| |
rather than cobbling them togethere here.
|
| |
|
|
| |
'native_path()'.
|
| | |
|
| |
|
|
|
| |
timestamps), so every build_* command has 'self.force', which follows the
'build' command if not set by the user.
|
| |
|
|
|
|
| |
Added code to include source files from 'build_clib' command to default file
list -- currently this won't work, since 'build_clib' doesn't have a
'get_source_files()' method!
|
| |
|
|
| |
option to disable this (by default, it's false and we clean up).
|
| |
|
|
| |
we still have to *run* the sub-command that creates a built distribution.
|
| |
|
|
|
| |
multiple built distributions in one run -- it seemed a bit dodgy and I'd
rather remove it than try to beat it into submission right now.
|
| |
|
|
| |
Added 'ztar', 'tar' to 'format_command' dictionary.
|
| | |
|
| |
|
|
|
|
|
|
|
| |
* build to "Debug" or "Release" temp directory
* put linker turds (.lib and .exp files) in the build temp directory
* tack on "_d" to extensions built with debugging
* added 'get_ext_libname()' help in putting linker turds to temp dir
Also, moved the code that simplifies None to empty list for a bunch
of options to 'finalize_options()' instead of 'run()'.
|
| | |
|
| |
|
|
|
|
| |
the command that actually creates "dumb" binary distributions, ie.
tarballs and zip files that you just unpack under <prefix> or <exec-prefix>.
Very limited, but it's a start.
|
| |
|
|
|
|
|
| |
Initial revision is pretty limited; it only knows how to generate "dumb"
binary distributions, i.e. a tarball on Unix and a zip file on Windows.
Also, due to limitations in the installation code, it only knows how to
distribute Python library code. But hey, it's a start.
|
| | |
|
| |
|
|
|
| |
Added 'get_inputs()' (which is strikingly similar to 'get_outputs()' - sigh).
Cosmetic tweaks.
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
provided by Distribution.
Cosmetic and error message tweaks.
Simplified 'make_release_tree()':
* extracted 'distutils.util.create_tree()'
* don't have to do hard-linking ourselves -- it's now handled by
'distutils.util.copy_file()' (although the detection of
whether hard linking is available still needs to be factored out)
Removed 'make_tarball()' and 'make_zipfile()' entirely -- their role
is now amply filled by 'distutils.util.make_archive()'.
Simplified 'make_distribution()':
* use Distribution's new 'get_full_name()' method
* use 'make_archive()' instead of if/elif/.../else on the archive format
|
| | |
|
| | |
|
| |
|
|
|
| |
use global __debug__ flag to determine if compiled files will be ".pyc"
or ".pyo". Tweaked compilation output messages too.
|
| |
|
|
|
| |
in preparation for the 'bdist_dumb' command; these methods remain as
trivial wrappers around the versions in distutils.util.
|
| | |
|
| |
|
|
|
|
| |
is responsible for installing all Python modules (pure and extensions).
Added 'get_outputs()' in preparation for the 'bdist' command, and
'_mutate_outputs()' to support 'get_outputs()'.
|
| |
|
|
|
|
|
| |
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.
|
| |
|
|
| |
methods of Distribution instead of grovelling directly in self.distribution.
|
| |
|
|
|
|
|
| |
Changed signature of 'build_extensions()': no longer takes the extension
list, but uses 'self.extensions' (just like 'get_outputs()' has to)
Moved call to 'check_extensions_list()' from 'run()' to 'build_extensions()',
again for consistency with 'get_outputs()'.
|
| |
|
|
|
|
|
|
|
|
|
|
|
| |
A host of improvements in preparation for the 'bdist' command:
- added 'get_outputs()' method (all the other improvements were to support
this addition)
- made 'find_package_modules()' and 'find_modules()' return similar
values (list of (package, module, module_filename) tuples)
- factored 'find_all_modules()' out of 'get_source_files()' (needed
by 'get_outputs()')
- factored 'get_module_outfile()' out of 'build_module()' (also needed
by 'get_outputs()')
- various little tweaks, improvements, comment/doc updates
|
| |
|
|
|
| |
Fixed 'build_extensions()' to pay attention to the 'rpath' element of the
'build_info' dictionary.
|
| | |
|
| |
|
|
| |
Deleted some crufty code.
|
| |
|
|
| |
completely (was already commented-out).
|
| |
|
|
| |
Python modules, pure and extensions.
|
| |
|
|
| |
Python and extensions, into the same directory.
|
| |
|
|
|
|
|
| |
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.
|
| |
|
|
|
|
|
|
|
|
|
|
| |
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.
|
| |
|
|
| |
irrelevant because this file is about to go away, but oh well.
|
| |
|
|
|
| |
have been checked in: was passing the PLAT environment variable as the
'plat' argument to 'new_compiler()'.
|
| |
|
|
| |
Added 'clean' to list of commands.
|