| Commit message (Collapse) | Author | Age | Files | Lines |
| | |
|
| |
|
|
|
| |
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.
|
| |
|
|
|
|
|
|
| |
* improve help strings
* warn if user supplies non-existing directories
* don't try to 'remove_tree()' non-existing directories
* try to remove the build_base after cleanup (but don't do or say
anything if it fails -- this is just in case we made it empty)
|
| |
|
|
| |
use 'util.remove_tree()' instead of 'nuke_release_tree()'.
|
| |
|
|
| |
the Distutils 'clean' command.
|
| | |
|
| |
|
|
| |
'link_static_lib()'.
|
| | |
|
| |
|
|
|
| |
Don't assume that the 'libraries' and 'library_dirs' elements of the
build info dict are always lists.
|
| | |
|
| |
|
|
|
|
| |
* replaced build_lib.py with build_clib.py
* renamed the class in build_clib.py
* changed all references to 'build_lib' command in other command classes
|
| | |
|
| |
|
|
|
|
|
| |
when building extensions (uses build_lib's 'get_library_names()' method).
Ensure that the relative structure of source filenames is preserved in
the temporary build tree, eg. foo/bar.c compiles to
build/temp.<plat>/foo/bar.o.
|
| |
|
|
|
|
|
|
|
|
|
|
| |
Added 'build_clib' and 'build_temp' options (where to put C libraries
and where to put temporary compiler by-products, ie. object files).
Moved the call to 'check_library_list()' from 'run()' to 'finalize_options()'
-- that way, if we're going to crash we do so earlier, and we guarantee
that the library list is valid before we do anything (not just run).
Disallow directory separators in library names -- the compiled library
always goes right in 'build_clib'.
Added 'get_library_names()', so the "build_ext" command knows what
libraries to link every extension with.
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
| |
* 'build_dir' -> 'build_lib', which by default takes its value
straight from 'build_lib' in the 'build' command
* added 'build_temp' and 'inplace' options
* change 'build_extensions()' to put object files (compiler turds) in
'build_temp' dir
* complicated the name-of-extension-file shenanigans in
'build_extensions()' to support "in-place" extension building, i.e.
put the extension right into the source tree (handy for developers)
* added 'get_ext_fullname()', renamed 'extension_filename()' to
'get_ext_filename()', and tweaked the latter a bit -- all to support
the new filename shenanigans
|
| |
|
|
|
|
| |
* 'build_lib' -> 'build_purelib'
* new 'build_lib' and 'build_temp' options
* use 'get_platform()' to initialize 'build_platlib' and 'build_temp'
|