Éric Araujo
c465b2f843
More fixes for PEP 3147 compliance in distutils ( #11254 )
15 years ago
Antoine Pitrou
cb2f84a218
Issue #13307 : fix bdist_rpm test failures
15 years ago
Senthil Kumaran
7c9719cf74
Fix closes Issue11439 Remove the SVN keywords from the code as it is no longer applicable in hg. Patch Contributed by Neil Muller.
15 years ago
Tarek Ziadé
c76bceae1a
Merged revisions 75704 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/branches/py3k
................
r75704 | tarek.ziade | 2009-10-26 00:08:47 +0100 (Mon, 26 Oct 2009) | 17 lines
Merged revisions 75669-75671 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk
........
r75669 | tarek.ziade | 2009-10-24 17:10:37 +0200 (Sat, 24 Oct 2009) | 1 line
Issue #7071 : byte-compilation in Distutils now looks at sys.dont_write_bytecode
........
r75670 | tarek.ziade | 2009-10-24 17:19:03 +0200 (Sat, 24 Oct 2009) | 1 line
fixed finally state in distutils.test_util
........
r75671 | tarek.ziade | 2009-10-24 17:51:30 +0200 (Sat, 24 Oct 2009) | 1 line
fixed warning and error message
........
................
17 years ago
Tarek Ziadé
04fe7c01a8
Merged revisions 75669-75671 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk
........
r75669 | tarek.ziade | 2009-10-24 17:10:37 +0200 (Sat, 24 Oct 2009) | 1 line
Issue #7071 : byte-compilation in Distutils now looks at sys.dont_write_bytecode
........
r75670 | tarek.ziade | 2009-10-24 17:19:03 +0200 (Sat, 24 Oct 2009) | 1 line
fixed finally state in distutils.test_util
........
r75671 | tarek.ziade | 2009-10-24 17:51:30 +0200 (Sat, 24 Oct 2009) | 1 line
fixed warning and error message
........
17 years ago
Tarek Ziadé
da31a3f0c2
Merged revisions 72577 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk
........
r72577 | tarek.ziade | 2009-05-12 09:01:29 +0200 (Tue, 12 May 2009) | 1 line
removing the assert statement so the code works when Python is run with -O
........
17 years ago
Tarek Ziadé
c27aca7d3c
Merged revisions 72535 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk
........
r72535 | tarek.ziade | 2009-05-10 13:42:46 +0200 (Sun, 10 May 2009) | 1 line
Added tests form install_lib and pep8-fied the module
........
17 years ago
Benjamin Peterson
1010bf3e26
Merged revisions 68840,68881,68943,68945 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk
........
r68840 | andrew.kuchling | 2009-01-20 20:15:43 -0600 (Tue, 20 Jan 2009) | 1 line
Add some items
........
r68881 | andrew.kuchling | 2009-01-23 21:28:18 -0600 (Fri, 23 Jan 2009) | 1 line
Add various items
........
r68943 | tarek.ziade | 2009-01-25 16:09:10 -0600 (Sun, 25 Jan 2009) | 1 line
Issue #5052 : removed backward compatibility information (out of date)
........
r68945 | tarek.ziade | 2009-01-25 16:11:04 -0600 (Sun, 25 Jan 2009) | 1 line
added missing module docstring
........
17 years ago
Collin Winter
5b7e9d76f3
General cleanup, raise normalization in Lib/distutils.
19 years ago
Skip Montanaro
7a98be2efb
Remove RISCOS support
19 years ago
Neal Norwitz
9d72bb452b
Remove functions in string module that are also string methods. Also remove:
* all calls to functions in the string module (except maketrans)
* everything from stropmodule except for maketrans() which is still used
19 years ago
Marc-André Lemburg
58d89dba7d
Restore Python 2.1 compatibility (os.extsep was introduced in Python 2.2).
22 years ago
Martin v. Löwis
5a6601cfc6
Update compatibility comments to 2.1, corresponding to PEP 291 1.13.
22 years ago
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.
22 years ago
Andrew M. Kuchling
d448f66317
Add comment to Distutil files about requiring 1.5.2 compatibility, as
suggested by PEP 291.
24 years ago
Andrew M. Kuchling
a6483d2e9a
Remove 'created by' lines; people can use CVS for this, and the information is often out of date
24 years ago
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.
24 years ago
Andrew M. Kuchling
8c20916de2
Remove unneeded import
24 years ago
Fred Drake
21d45356b8
Whitespace normalization.
25 years ago
Greg Ward
25a309c0a9
Remove some debugging prints.
26 years ago
Greg Ward
0295181fa6
Typo fix.
26 years ago
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
26 years ago
Greg Ward
c1acc69018
From 'run()', only call 'bytecompile()' if we actually have
pure Python modules to compile.
26 years ago
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()'.
26 years ago
Greg Ward
3e6d43801b
Fixed 'run()' so it doesn't call 'bytecompile()' if 'install()' returned None.
26 years ago
Greg Ward
99b032eaf2
Added 'boolean_options' list to support config file parsing.
26 years ago
Greg Ward
f84fb660cb
Split 'run()' up into 'build()', 'install()', and 'bytecompile()' (for
easier extensibility).
26 years ago
Greg Ward
7b87c0e1bb
Whitespace tweaks.
26 years ago
Greg Ward
3a0310a328
Added --force (-f) option to force installation (including bytecode
compilation).
26 years ago
Greg Ward
ab3a0f36ed
Fixed imports from '*util' modules to not just import everything from util.
26 years ago
Greg Ward
90c74cc4da
Rene Liebscher: fix 'skipping byte-compilation' message for grammatical
consistency.
26 years ago
Greg Ward
4fb29e55f8
Some far-reaching naming changes:
* 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").
26 years ago
Greg Ward
d7ad5039cb
Fixed command description.
26 years ago
Greg Ward
f355d473fa
Check if the claimed build directory doesn't exist, and warn that we don't
have any Python modules to install (rather than bomb when we try to copy
a non-existent directory).
26 years ago
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.
26 years ago
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.
26 years ago
Greg Ward
4779cdfae8
Don't use 'set_option()' or 'get_option()' method -- direct attribute access,
or getattr/setattr, is all that's needed.
26 years ago
Greg Ward
1aab6e9645
Added 'get_inputs()'.
26 years ago
Greg Ward
ed8a0e0f21
Patch inspired by Bastian Kleineidam <calvin@cs.uni-sb.de>:
use global __debug__ flag to determine if compiled files will be ".pyc"
or ".pyo". Tweaked compilation output messages too.
26 years ago
Greg Ward
e5dfba5e0f
Be sure to run both 'build_py' and 'build_ext', now that this command
is responsible for installing all Python modules (pure and extensions).
Added 'get_outputs()' in preparation for the 'bdist' command, and
'_mutate_outputs()' to support 'get_outputs()'.
26 years ago
Greg Ward
297dd9fed5
Fixed the class name.
26 years ago
Greg Ward
3ce77fd05e
Changed '__rcsid__' to '__revision__'.
26 years ago
Greg Ward
4f08e4facb
Unfinished, untested implementation of the lovely baroque installation scheme
cooked up by Fred Drake and me. Only saved for posterity (whoever posterity
is), as it is about to be ditched in favour of GvR's much simpler design.
26 years ago
Greg Ward
e01149cbe8
Renamed 'set_default_options()' to 'initialize_options()', and
'set_final_options()' to 'finalize_options()'.
26 years ago
Greg Ward
bbeceeaf9a
Renamed all 'options' class attributes to 'user_options'.
26 years ago
Greg Ward
1993f9ad0e
Renamed all command classes so they're exactly the same as the name of the
command itself: no more of this "FooBar class for foo_bar command"
silliness.
26 years ago
Greg Ward
37bc815053
Added 'description' class attribute to every command class (to help the
'--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).
26 years ago
Greg Ward
7478a4832a
Added missing run of corresponding 'build' command.
26 years ago
Greg Ward
ef9ad6df01
Tweaked verbosity messages for byte-compilation.
27 years ago
Greg Ward
e6ac2fcc12
Renamed many options to be consistent across commands.
Tweaked some help strings to be consistent with documentation.
Don't call 'set_final_options()' in 'run()' anymore -- that's now
guaranteed to be taken care of for us by the Distribution instance.
27 years ago