Gregory P. Smith
a04d807127
Rename 'build_bdist' to 'bdist_base', and get it by default from the
...
"bdist" command rather than "build".
2000-05-13 02:30:15 +00:00
Gregory P. Smith
c008488981
Typo fix.
2000-05-13 02:20:43 +00:00
Gregory P. Smith
0ec8ef1601
Made the '--record' option take an argument, which is the name of the
...
file to write the list of installed files to.
2000-05-13 02:16:45 +00:00
Gregory P. Smith
7e855ef6ad
Ditch the explicit search for *.py[co] files -- they're now included in
...
the list returned by 'get_outputs()', thanks to changes in the
"install_lib" command.
2000-05-13 02:13:53 +00:00
Gregory P. Smith
11fb783fa4
Added '_bytecode_filenames()' method, and use it in 'get_outputs()'
...
to ensure that compiled bytecode files are considered part of the output
of the "install_lib" command.
2000-05-13 02:11:10 +00:00
Gregory P. Smith
f9ebf98725
Moved check for installation to non-sys.path location so it comes
...
last (after writing list of installed files) -- that way, the warning
is more visible.
2000-05-13 02:01:22 +00:00
Gregory P. Smith
8cb676195b
Harry Henry Gebel: add the "--record" option to write the list of
...
installed files to INSTALLED_FILES.
2000-05-13 01:58:19 +00:00
Gregory P. Smith
a190268bf6
Added the 'build_bdist' option and code to clean it up -- this is the
...
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.)
2000-05-13 01:56:55 +00:00
Gregory P. Smith
b5ebe5d640
Harry Henry Gebel: get extra compiler flags from the CFLAGS environment
...
variable.
(Is this really needed? Can we drop it when the config file mechanism
allows users to set compiler flags in setup.cfg?)
2000-05-13 01:52:14 +00:00
Gregory P. Smith
52e399c904
Harry Henry Gebel: add support for the 'bdist_rpm' command, specifically
...
the 'no_format_option' class attribute.
2000-05-13 01:49:56 +00:00
Gregory P. Smith
d5b53df18c
Harry Henry Gebel: add 'bdist_rpm' command.
2000-05-13 01:48:15 +00:00
Gregory P. Smith
de5c953a2b
From Lyle Johnson: renamed 'implib_dir' to 'implib_file', and
...
correctly ensure that it's 'dirname' exists.
2000-05-13 01:35:33 +00:00
Gregory P. Smith
6fafca4e1d
Added comment/docstring/revision header.
2000-05-12 01:58:29 +00:00
Gregory P. Smith
17f641c143
Fixed 'select_scheme()' so it doesn't override a directory attribute that's
...
already been set (eg. by a command-line option).
2000-05-12 01:54:50 +00:00
Gregory P. Smith
74ead8ff5d
Added --skip-build option, so lazy debuggers/testers (mainly me) don't
...
have to wade through all the 'build' output when testing installation.
2000-05-12 01:46:47 +00:00
Gregory P. Smith
f8f2b98bdd
Caught up with renaming in 'install_misc' base class.
2000-05-12 01:34:33 +00:00
Gregory P. Smith
ae988a57d2
Deleted some cruft.
...
Caught up with renaming in 'install_misc' base class.
Changed 'run()' to chmod installed scripts under Unix.
2000-05-12 01:32:30 +00:00
Gregory P. Smith
ce2b6b838f
In 'install_misc' class:
...
- renamed '_copydata()' to 'copy_files()'
- changed it to record complete output filenames
- dropped '_outputdata()' in favour of much simpler 'get_outputs()'
2000-05-12 01:31:37 +00:00
Gregory P. Smith
b2e3bb3d6a
Patch from Bastien Kleineidam:
...
adds the 'install_data' and 'install_scripts' commands; these two
are trivial thanks to the 'install_misc' base class in cmd.py.
(Minor tweaks and commentary by me; the code is untested so far.)
2000-05-12 00:52:23 +00:00
Gregory P. Smith
bb8c71d563
Call 'parse_config_files()' at the appropriate point.
...
Tweaked error-generating code.
2000-05-12 00:42:19 +00:00
Gregory P. Smith
1426354cf6
Preliminary support for config files:
...
- added 'find_config_files()' and 'parse_config_files()' methods
- added 'command_options' attribute
Comment/docstring updates.
2000-05-12 00:41:33 +00:00
Gregory P. Smith
e7e35ac1c2
Made 'check_environ()' "public" by stripping the leading underscore;
...
added a global '_environ_checked' so we know if it's already been
called.
2000-05-12 00:40:00 +00:00
Gregory P. Smith
6cd0c43366
Fix from Lyle Johnson: add the '--compiler' option.
...
Also added creation of 'implib_dir', a temporary directory specific to
MSVC++ -- but I checked in two ways of fixing it (Lyle's and mine),
because I'm not sure which is right.
2000-05-12 00:34:12 +00:00
Gregory P. Smith
9668b78b9f
Fix from Lyle Johnson: add the '--compiler' option.
2000-05-12 00:33:14 +00:00
Greg Ward
1500374667
Added comment about the MSVC-specific kludge.
2000-05-09 01:50:41 +00:00
Greg Ward
4779cdfae8
Don't use 'set_option()' or 'get_option()' method -- direct attribute access,
...
or getattr/setattr, is all that's needed.
2000-05-07 15:32:13 +00:00
Greg Ward
c4537ac9b6
Got rid of several little-used and not-very-useful methods: 'get_option()',
...
'get_options()', 'get_command_option()', 'get_command_options()'.
2000-05-07 15:30:31 +00:00
Greg Ward
f4f8e64957
Got rid of some little-used and not-very-useful methods: 'get_option()' and
...
'get_options()'.
2000-05-07 15:29:15 +00:00
Greg Ward
18856b80e2
Added the ability to sneak extra flags onto the C compiler command line
...
via an 'extra_compile_args' option in the 'build_info' dictionary.
2000-05-06 13:12:59 +00:00
Greg Ward
6a647bb910
Added the "--root" option as a sort of meta-install-base; if supplied,
...
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.
2000-04-27 01:56:38 +00:00
Greg Ward
67f75d4bcb
Added 'change_root()' to forcibly slap a new root directory onto a pathname,
...
even if it's already absolute. Currently only implemented for Unix; I'm
not entirely sure of the right thing to do for DOS/Windows, and have no
clue what to do for Mac OS.
2000-04-27 01:53:46 +00:00
Greg Ward
ff2d9b7154
Hacked things up a bit so that configuration variables are expanded
...
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.
2000-04-26 02:38:01 +00:00
Greg Ward
6ce94b72c6
Harry Henry Gebel: import exception classes.
2000-04-26 02:29:51 +00:00
Greg Ward
e5a584e865
Harry Henry Gebel: add 'long_description' to DistributionMetadata.
2000-04-26 02:26:55 +00:00
Greg Ward
839d532e50
Supply short form for --manifest-only (-o) and --force-manifest (-f)
...
options.
2000-04-26 01:14:33 +00:00
Greg Ward
1b8e1d4c0d
Harry Henry Gebel:
...
Fix 'sdist.write_manifest()' to respect the value of dry_run.
2000-04-26 01:12:40 +00:00
Greg Ward
a74ce01c98
Bumped version to 0.8.2.
2000-04-25 01:55:58 +00:00
Greg Ward
f194878d6a
Harry Henry Gebel:
...
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.
2000-04-25 01:38:20 +00:00
Greg Ward
464023fb64
Lyle Johnson: fixed broken logic in 'native_path()'.
2000-04-25 01:33:11 +00:00
Greg Ward
66bf446273
Patch from Harry Henry Gebel: fix two stupid bugs in help-printing stuff.
2000-04-23 02:50:45 +00:00
Greg Ward
3af07e9a78
Sporadic, untested Python 1.5.1 compatibility changes.
2000-04-22 15:17:14 +00:00
Greg Ward
aa458bc465
Merged in Python 1.5.1 compatibility changes from the 0.1.3 branch:
...
added 'abspath()' and 'extend()'.
2000-04-22 15:14:58 +00:00
Greg Ward
d80506c238
Merged in code from the 0.1.5 release to handle IOError and OSError
...
exceptions better.
2000-04-22 03:20:49 +00:00
Greg Ward
6a9a545ab1
Check that 'self.formats' is good early on.
2000-04-22 03:11:55 +00:00
Greg Ward
ddad73bca9
Catch DistutilsOptionError in 'setup()' -- it's thrown either because of
...
errors in the setup script or on the command line, so shouldn't result
in a traceback.
2000-04-22 03:11:17 +00:00
Greg Ward
db80754abc
Extracted the "what-do-I-do-for-this-format" logic from code in
...
'make_archive()' to a global static dictionary, ARCHIVE_FORMATS.
Added 'check_archive_formats()', which obviously makes good use of
this dictionary.
2000-04-22 03:09:56 +00:00
Greg Ward
4982f98bc9
Fix how we generate the meta-data query methods to include 'get_fullname()'
...
and the other "composite meta-data" methods.
2000-04-22 02:52:44 +00:00
Greg Ward
0ae7f76b40
Changed to call 'get_fullname()', not 'get_full_name()', on Distribution object.
2000-04-22 02:51:25 +00:00
Greg Ward
535f2d9ace
Fix 'check_metadata()' so it grovels through the distribution's metadata
...
object, rather than through the distribution itself (since I moved the meta-
data out to a DistributionMetadata instance).
2000-04-21 04:37:12 +00:00
Greg Ward
9d5afa9894
Patch from Andrew Kuchling: allow multiple include/exclude patterns
...
for all commands except 'prune' and 'graft'.
2000-04-21 04:31:10 +00:00