| Commit message (Collapse) | Author | Age | Files | Lines |
| ... | |
| | |
|
| | |
|
| |
|
|
| |
Added a warning for 'bdist_base' directory.
|
| |
|
|
|
|
|
| |
* 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.").
|
| | |
|
| |
|
|
|
|
|
|
|
|
|
|
|
| |
* '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
|
| | |
|
| |
|
|
|
| |
up-to-date with respect to the source files; that way, we
don't needlessly rebuild just because object files go away.
|
| |
|
|
|
|
|
|
|
|
|
| |
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
|
| | |
|
| | |
|
| |
|
|
|
|
|
|
|
| |
* '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
|
| |
|
|
| |
its 'scripts' attribute.
|
| | |
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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.
|
| | |
|
| | |
|
| | |
|
| |
|
|
|
|
|
|
|
| |
objects, it now has method names.
Added three methods, 'has_lib()', 'has_scripts()', and 'has_data()'
to determine if we need to run each of the three possible sub-commands.
Added 'get_sub_commands()' to take care of finding the methods named
in 'sub_commands', running them, and interpreting the results to
build a list of sub-commands that actually have to be run.
|
| |
|
|
|
| |
have any Python modules to install (rather than bomb when we try to copy
a non-existent directory).
|
| |
|
|
| |
Added some guiding comments.
|
| | |
|
| |
|
|
|
| |
(Completely uninspected and untested by me, this is just to
get the code into CVS!)
|
| |
|
|
| |
rather than 'data'.
|
| | |
|
| |
|
|
| |
'get_inputs()'.
|
| |
|
|
|
|
|
|
|
|
| |
new flexibility, specifically the 'root' option. Now, we just use
"install" to do a fake installation into a temporary directory
(the 'bdist_dir' option, which derives from the 'bdist_base' option of
"bdist"), and then tar/zip up that directory. This means that dumb
built distributions are now relative to the root directory, rather than
the prefix or exec-prefix; this is probably a feature, but does make
them slightly less flexible.
|
| |
|
|
| |
"bdist" command rather than "build".
|
| | |
|
| |
|
|
| |
file to write the list of installed files to.
|
| |
|
|
|
| |
the list returned by 'get_outputs()', thanks to changes in the
"install_lib" command.
|
| |
|
|
|
| |
to ensure that compiled bytecode files are considered part of the output
of the "install_lib" command.
|
| |
|
|
|
| |
last (after writing list of installed files) -- that way, the warning
is more visible.
|
| |
|
|
| |
installed files to INSTALLED_FILES.
|
| |
|
|
|
|
| |
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.)
|
| |
|
|
|
|
|
| |
variable.
(Is this really needed? Can we drop it when the config file mechanism
allows users to set compiler flags in setup.cfg?)
|
| |
|
|
| |
the 'no_format_option' class attribute.
|
| | |
|
| |
|
|
| |
correctly ensure that it's 'dirname' exists.
|
| | |
|
| |
|
|
| |
already been set (eg. by a command-line option).
|
| |
|
|
| |
have to wade through all the 'build' output when testing installation.
|
| | |
|
| |
|
|
|
| |
Caught up with renaming in 'install_misc' base class.
Changed 'run()' to chmod installed scripts under Unix.
|
| |
|
|
|
|
| |
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.)
|
| |
|
|
|
|
| |
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.
|
| | |
|
| | |
|
| |
|
|
| |
or getattr/setattr, is all that's needed.
|