Tarek Ziadé
1733c9362b
fixed warning and error message
2009-10-24 15:51:30 +00:00
Tarek Ziadé
b9c1cfc428
Issue #7071 : byte-compilation in Distutils now looks at sys.dont_write_bytecode
2009-10-24 15:10:37 +00:00
Tarek Ziadé
4ba25c25d2
removing the assert statement so the code works when Python is run with -O
2009-05-12 07:01:29 +00:00
Tarek Ziadé
234ab8fc1c
Added tests form install_lib and pep8-fied the module
2009-05-10 11:42:46 +00:00
Tarek Ziadé
7c28be8df5
added missing module docstring
2009-01-25 22:11:04 +00:00
Tarek Ziadé
9f369e9163
Issue #5052 : removed backward compatibility information (out of date)
2009-01-25 22:09:10 +00:00
Christian Heimes
c5f05e45cf
Patch #2167 from calvin: Remove unused imports
2008-02-23 17:40:11 +00:00
Marc-André Lemburg
58d89dba7d
Restore Python 2.1 compatibility (os.extsep was introduced in Python 2.2).
2004-12-02 20:14:16 +00:00
Martin v. Löwis
5a6601cfc6
Update compatibility comments to 2.1, corresponding to PEP 291 1.13.
2004-11-10 22:23:15 +00:00
Fred Drake
25d88926b9
Since build_py handles package data installation, the list of outputs
...
can contain more than just .py files. Make sure we only report
bytecode files for the .py files.
2004-07-28 14:55:10 +00:00
Andrew M. Kuchling
d448f66317
Add comment to Distutil files about requiring 1.5.2 compatibility, as
...
suggested by PEP 291.
2002-11-19 13:12:28 +00:00
Andrew M. Kuchling
a6483d2e9a
Remove 'created by' lines; people can use CVS for this, and the information is often out of date
2002-11-14 02:25:42 +00:00
Jeremy Hylton
cd8a1148e1
Make setup.py less chatty by default.
...
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.
2002-06-04 20:14:43 +00:00
Andrew M. Kuchling
8c20916de2
Remove unneeded import
2002-05-30 19:15:16 +00:00
Fred Drake
21d45356b8
Whitespace normalization.
2001-12-06 21:01:19 +00:00
Greg Ward
25a309c0a9
Remove some debugging prints.
2000-10-03 03:32:37 +00:00
Greg Ward
0295181fa6
Typo fix.
2000-10-02 02:25:51 +00:00
Greg Ward
cb9c9aed01
Finished the overhaul of byte-compilation options: there's now a 6-way
...
choice between (compile, no-compile) * (optimize=0, optimize=1,
optimize=2). Details:
- added --no-compile option to complement --compile, which has
been there for ages
- changed --optimize (which never worked) to a value option, which
expects 0, 1, or 2
- renamed 'bytecompile()' method to 'byte_compile()', and beefed
it up to handle both 'compile' and 'optimize' options
- fix '_bytecode_filenames()' to respect the new options
2000-10-02 02:15:08 +00:00
Greg Ward
c1acc69018
From 'run()', only call 'bytecompile()' if we actually have
...
pure Python modules to compile.
2000-10-01 23:50:13 +00:00
Greg Ward
1df6e7b1fc
Reduced the 'bytecompile()' method to a one-line wrapper around
...
'util.byte_compile()'. Currently just reproduces the existing functionality
-- doesn't use any of the fancy features in the new 'byte_compile()'.
2000-09-30 20:39:09 +00:00
Greg Ward
3e6d43801b
Fixed 'run()' so it doesn't call 'bytecompile()' if 'install()' returned None.
2000-09-30 17:35:26 +00:00
Greg Ward
99b032eaf2
Added 'boolean_options' list to support config file parsing.
2000-09-25 01:41:15 +00:00
Greg Ward
f84fb660cb
Split 'run()' up into 'build()', 'install()', and 'bytecompile()' (for
...
easier extensibility).
2000-09-23 01:20:19 +00:00
Greg Ward
7b87c0e1bb
Whitespace tweaks.
2000-09-23 01:10:10 +00:00
Greg Ward
3a0310a328
Added --force (-f) option to force installation (including bytecode
...
compilation).
2000-09-13 01:02:25 +00:00