summaryrefslogtreecommitdiffstats
path: root/Lib/distutils/command/build_py.py
Commit message (Collapse)AuthorAgeFilesLines
* Backport theller's checkin of revision 1.35:Michael W. Hudson2002-02-191-1/+5
| | | | | | | package_dir must be converted from the distutils path conventions to local conventions before being used by build_py. Fixes SF bug #509288, probably a candidate for 2.2.1
* Whitespace normalization.Fred Drake2001-12-061-3/+3
|
* Added the ability to do byte-compilation at build time, currently offGreg Ward2000-10-021-5/+51
| | | | | | | | | by default (since compiling at install time works just fine). Details: - added 'compile' and 'optimize' options - added 'byte_compile()' method - changed 'get_outputs()' so it includes bytecode files A lot of the code added is very similar to code in install_lib.py; would be nice to factor it out further.
* Standardized whitespace around function calls.Greg Ward2000-09-301-54/+54
|
* Changed 'build_module()' so it returns the result of 'copy_file()'Greg Ward2000-09-301-1/+1
| | | | on the module file -- could be useful for subclasses overriding it.
* Added 'boolean_options' list to support config file parsing.Greg Ward2000-09-251-0/+2
|
* Typo fix.Greg Ward2000-09-061-1/+1
|
* Added 'script_name' and 'script_args' instance attributes to Distribution.Greg Ward2000-08-291-1/+3
| | | | | | | | 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]'.
* Fix long-hidden inconsistency in internal interface: 'find_modules()' nowGreg Ward2000-08-151-7/+2
| | | | | represents packages as strings, not tuples. This allowed a simplification in 'get_package_dir()', too -- can now assume that 'package' is a string.
* Renamed 'modules' option to 'py_modules', for consistency with DistributionGreg Ward2000-06-041-13/+13
| | | | (and in order to generate a more sensible error message cleanly).
* Fixed a couple of long-hidden bugs (amazing what you find when youGreg Ward2000-05-261-6/+33
| | | | | | | | | | | 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
* Normalized all the end-of-class lines.Greg Ward2000-05-251-1/+1
|
* Delete some debugging print statements.Greg Ward2000-04-101-2/+0
|
* Added '--force' option -- very clear what it means for building (ignoreGreg Ward2000-04-101-1/+6
| | | | | timestamps), so every build_* command has 'self.force', which follows the 'build' command if not set by the user.
* Deleted some crufty comments and code.Greg Ward2000-03-291-36/+49
| | | | | | | | | | | | | 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
* Typo fix.Greg Ward2000-03-031-1/+1
|
* Changed '__rcsid__' to '__revision__'.Greg Ward2000-03-021-1/+1
|
* Build reorg: change 'build_dir' option to 'build_lib'.Greg Ward2000-03-011-8/+8
|
* Renamed 'set_default_options()' to 'initialize_options()', andGreg Ward2000-02-181-2/+2
| | | | 'set_final_options()' to 'finalize_options()'.
* Renamed all 'options' class attributes to 'user_options'.Greg Ward2000-02-181-2/+3
|
* Renamed all command classes so they're exactly the same as the name of theGreg Ward2000-02-181-1/+1
| | | | | command itself: no more of this "FooBar class for foo_bar command" silliness.
* Patch from Joe Van Andel: fix arg to % operator in warning.Greg Ward2000-02-021-2/+2
|
* Added 'description' class attribute to every command class (to help theGreg Ward2000-01-301-0/+2
| | | | | | | '--help-commands' option). Shuffled imports around in a few command modules to avoid expensive up-front import of sysconfig (and resulting delays in generating list of all commands).
* Ditch unneeded imports.Greg Ward2000-01-171-1/+0
|
* Fixed 'find_package_modules()' to ensure that we never build (and thusGreg Ward1999-12-121-11/+24
| | | | | | | | install) the setup script itself. Fixed 'build_module()' so we do *not* preserve file mode (which means we can install read-only files, which makes the next installation of this distribution fail -- at least under Unix); added a comment explaining this.
* [from 1999-11-04]Greg Ward1999-12-031-5/+14
| | | | | | | | Bunch of little bug fixes that appeared in building non-packagized distributions. Mainly: - brain-slip typo in 'get_package_dir()' - don't try to os.path.join() an empty path tuple -- it doesn't like it - more type-safety in 'build_module()'
* Don't import what we don't use.Greg Ward1999-10-031-1/+1
|
* Renamed 'dir' option to be consistent with other commands.Greg Ward1999-09-291-35/+66
| | | | | | | | | | | | Don't call 'set_final_options()' in 'run()' anymore -- that's now guaranteed to be taken care of for us by the Distribution instance. Rearranged to bit to allow outsiders (specifically, the 'dist' command) to find out what modules we would build: - 'find_modules()' renamed to 'find_package_modules()' - most of 'build_modules()' abstracted out to 'find_modules()' - added 'get_source_files()' (for the 'dist' command to use) - drastically simplified 'build_modules()' -- now just a wrapper around 'find_modules()' and 'build_module()'
* Basically a complete rewrite to support dealing with modules in wholeGreg Ward1999-09-211-36/+197
| | | | packages and searching for source files by 'package_dir'.
* Comment addition.Greg Ward1999-09-131-0/+3
|
* Changed to reflect the new "command options" regime -- in particular,Greg Ward1999-09-081-7/+7
| | | | | we no longer explicitly pull distribution options out of our Distribution object, but rather let the Distribution put them into the command object.
* Patch from Perry Stoll: OK for list of modules to be empty.Greg Ward1999-08-291-0/+4
|
* Rearranged things so that compilation of .py files is the responsibilityGreg Ward1999-05-021-27/+1
| | | | | | | | | of the 'install_py' command rather than 'build_py'. Obviously, this meant that the 'build_py' and 'install_py' modules had to change; less obviously, so did 'install' and 'build', since these higher-level commands must make options available to control the lower-level commands, and some compilation-related options had to migrate with the code.
* Changed to use the method versions of 'copy_file()', 'copy_tree()',Greg Ward1999-04-041-6/+5
| | | | | and 'make_file()'-- that way, the verbose and dry-run flags are handled for free.
* First checkin of real Distutils command modules.Greg Ward1999-03-221-0/+113