| Commit message (Collapse) | Author | Age | Files | Lines |
| |
|
| |
|
| |
|
| |
|
|
|
|
| |
with the bdist_* commands.
|
| |
|
| |
|
|
|
|
|
|
| |
- 'mkpath()' the distribution dir in case of empty manifest
- warn if empty manifest
- detect, warn about, and skip non-regular files in manifest
|
|
|
|
|
| |
bug to boot: now works even if both MANIFEST and MANIFEST.in don't exist.
Don't hardcode setup.py, use 'self.distribution.script_name'.
|
|
|
|
|
|
|
|
| |
Changed 'core.setup()' so it sets them to reasonable defaults.
Tweaked how the "usage" string is generated: 'core' now provides
'gen_usage()', which is used instead of 'USAGE'.
Modified "build_py" and "sdist" commands to refer to
'self.distribution.script_name' rather than 'sys.argv[0]'.
|
|
|
|
| |
in archive_util.py.
|
| |
|
|
|
|
|
| |
mere warnings.
Call 'findall()' on our FileList object before we start using it seriously.
|
|
|
|
|
| |
instance instead of a list of filenames. Simplifies the "sdist" command
only a bit, but should allow greater simplification of FileList.
|
|
|
|
|
| |
which I renamed to FileList: remove all the file-list-generation code from
the sdist command and adapt it to use the new FileList class instead.
|
|
|
|
| |
Comment tweak.
|
|
|
|
| |
defaults to 'dist' (ie. no longer in the distribution root).
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Changed 'prune_file_list()' so it also prunes out RCS and CVS directories.
Added 'is_regex' parameter to 'select_pattern()', 'exclude_pattern()',
and 'translate_pattern()', so that you don't have to be constrained
by the simple shell-glob-like pattern language, and can escape into
full-blown regexes when needed. Currently this is only available
in code -- it's not exposed in the manifest template mini-language.
Added 'prune' option (controlled by --prune and --no-prune) to determine
whether we call 'prune_file_list()' or not -- it's true by default.
Fixed 'negative_opt' -- it was misnamed and not being seen by dist.py.
Added --no-defaults to the option table, so it's seen by FancyGetopt.
|
|
|
|
|
|
|
| |
in the module of the command classes that have command-specific
help options. This lets us keep the principle of lazily importing
the ccompiler module, and also gets away from defining non-methods
at class level.
|
| |
|
|
|
|
| |
manifest, regenerate the manifest.
|
| |
|
|
|
|
|
|
|
|
|
|
| |
template into a new method 'prune_file_list()', called from
'get_file_list()' rather than 'read_manifest()' -- this keeps
'read_manifest()' more general.
Deleted the redundant call to 'exclude_pattern()' in 'make_distribution()'
-- this had the same intention as 'prune_file_list()', but was incomplete
(only pruned the release tree, not the build tree) and in the wrong
place (the prune wouldn't be reflected in the manifest file).
|
|
|
|
| |
Deleted old, commented-out 'exclude_pattern()' method.
|
| |
|
| |
|
|
|
|
| |
'help_options' list; also added an editorial comment.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
directly printing to stdout. This was a bit more work than it sounds like
it should have been:
* turned 'select_pattern()' and 'exclude_pattern()' from functions into
methods, so they can refer to 'self' to access the method
* commented out the *other* 'exclude_pattern()' method, which appears
to be vestigial code that was never cleaned up when the
'exclude_pattern()' function was created
* changed the one use of the old 'exclude_pattern()' method to use the
new 'exclude_pattern()' (same behaviour, slightly different args)
* some code and docstring reformatting
* and, of course, changed all the debugging prints to 'debug_print()' calls
Added/tweaked some regular ('self.announce()') output for better runtime
feedback.
|
|
|
|
|
|
|
|
|
|
| |
values that "--foo" can take for various commands: eg. what formats for
"sdist" and "bdist", what compilers for "build_ext" and "build_clib".
I have *not* reviewed this patch; I'm checking it in as-is because it also
fixes a paper-bag-over-head bug in bdist.py, and because I won't have
time to review it properly for several days: so someone else can
test it for me, instead!
|
|
|
|
| |
spelled sensibly in a config file.
|
|
|
|
| |
Added 'get_archive_files()' so outsiders can get their hands on that list.
|
|
|
|
|
| |
Also changed it so it doesn't barf if the path is already in native format
(ie. contains os.sep).
|
|
|
|
|
|
|
| |
* 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").
|
|
|
|
|
|
|
|
|
|
| |
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.").
|
| |
|
|
|
|
| |
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'.
|
|
|
|
| |
'native_path()'.
|
|
|
|
|
|
| |
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!
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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
|
|
|
|
|
| |
in preparation for the 'bdist_dumb' command; these methods remain as
trivial wrappers around the versions in distutils.util.
|
|
|
|
| |
use 'util.remove_tree()' instead of 'nuke_release_tree()'.
|
| |
|
| |
|
|
|
|
| |
'set_final_options()' to 'finalize_options()'.
|