summaryrefslogtreecommitdiffstats
path: root/Lib/distutils/command/build_py.py
Commit message (Collapse)AuthorAgeFilesLines
* Issue #19286: [distutils] Only match files in build_py.find_data_files.Jason R. Coombs2013-11-021-1/+2
|
* massive import cleaning in DistutilsTarek Ziadé2009-12-211-1/+0
|
* fixed warning and error messageTarek Ziadé2009-10-241-1/+1
|
* Issue #7071: byte-compilation in Distutils now looks at sys.dont_write_bytecodeTarek Ziadé2009-10-241-0/+5
|
* cleaned up distutils.command.build_pyTarek Ziadé2009-07-031-90/+44
|
* Issue #5052: removed backward compatibility information (out of date)Tarek Ziadé2009-01-251-2/+0
|
* Update distutils so that it triggers no warnings when run under -3.Brett Cannon2008-08-171-2/+2
|
* Patch #2167 from calvin: Remove unused importsChristian Heimes2008-02-231-1/+1
|
* SF 1668596/1720897: distutils now copies data filesNeal Norwitz2007-06-011-1/+3
| | | | | | | | even if package_dir is empty. This needs to be backported. I'm too tired tonight. It would be great if someone backports this if the buildbots are ok with it. Otherwise, I will try to get to it tomorrow.
* Update compatibility comments to 2.1, corresponding to PEP 291 1.13.Martin v. Löwis2004-11-101-1/+1
|
* If self.packages is None (this can happen, I saw it), returnSjoerd Mullender2004-06-181-0/+2
| | | | immediately (since None is not a sequence you can iterate over).
* fix bug: list of data files was initialized too soon in build_pyFred Drake2004-06-171-1/+1
|
* Add support for package data.Fred Drake2004-06-111-0/+51
| | | | | | | This is basically the support for package data from Phillip Eby's setuptools package. I've changed it only to fit it into the core implementation rather than to live in subclasses, and added documentation.
* [Patch #695090 from Bernhard Herzog] Allow specifying both py_modules and ↵Andrew M. Kuchling2003-02-281-20/+6
| | | | packages
* Add comment to Distutil files about requiring 1.5.2 compatibility, asAndrew M. Kuchling2002-11-191-0/+2
| | | | suggested by PEP 291.
* Remove 'created by' lines; people can use CVS for this, and the information ↵Andrew M. Kuchling2002-11-141-2/+0
| | | | is often out of date
* Make None return explicitJeremy Hylton2002-06-041-1/+1
|
* Make setup.py less chatty by default.Jeremy Hylton2002-06-041-11/+6
| | | | | | | | | | | | | | | This is a conservative version of SF patch 504889. It uses the log module instead of calling print in various places, and it ignores the verbose argument passed to many functions and set as an attribute on some objects. Instead, it uses the verbosity set on the logger via the command line. The log module is now preferred over announce() and warn() methods that exist only for backwards compatibility. XXX This checkin changes a lot of modules that have no test suite and aren't exercised by the Python build process. It will need substantial testing.
* Revert 0/1 -> False/True change; I didn't intend to muck w/ distutils.Tim Peters2002-04-041-2/+2
|
* Convert a pile of obvious "yes/no" functions to return bool.Tim Peters2002-04-041-2/+2
|
* package_dir must be converted from the distutils path conventions toThomas Heller2002-02-011-1/+5
| | | | | | 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
|