805 Commits

Author SHA1 Message Date
Andrew M. Kuchling
a7ce71b5e9 [Jython patch #1578658] Make distutils work for Jython, at least for
pure-Python distributions.

Patch by Supreet Sethi, slightly modified by adding the change
to sysconfig.py.
2006-12-10 00:35:20 +00:00
Skip Montanaro
6697232456 backport of fix from 1.15 to make sure installed scripts have the read bit
set.
2003-06-27 19:37:16 +00:00
Thomas Heller
462203fc00 Backport of my checkin to rev 1.46:
Fix for sf # 749210, wininst isn't build correctly after building zip.

The problem was that subcommands were not reinitialized.

Bugfix candidate, will backport myself.
2003-06-12 17:29:57 +00:00
Jack Jansen
e9ac7201fd Backport of 1.48: on Mac OS X don't use -R for runtime_library_dirs, use
-L in stead. Fixes #723495.
2003-05-23 22:34:39 +00:00
Andrew M. Kuchling
4e48224907 Backport rev. 1.73: Translate spaces in the machine name to underscores 2003-02-26 22:26:03 +00:00
Michael W. Hudson
95f1a78378 Backport my (!) revision 1.50:
Well, Fred never did explain why the code to determine whether the
calling Python was installed was so complicated, so I simplified it.

This should get the snake-farm's build scripts working again.
2002-11-26 09:42:57 +00:00
Andrew M. Kuchling
e8b80169f3 Backport rev. 1.14:
Allow unknown keyword arguments to the Extension class, and warn about them.
2002-11-20 16:14:31 +00:00
Andrew M. Kuchling
0e44fa9c29 Backport of rev1.57:
Make the Distribution() constructor forgiving of unknown keyword
 arguments, triggering a warning instead of raising an exception.  (In
 1.5.2/2.0, it will print to stderr.)
2002-11-20 15:05:41 +00:00
Andrew M. Kuchling
ec3b3e675d Backport to 2.2: [Bug #570655] Fix misleading option text 2002-11-04 13:33:47 +00:00
Michael W. Hudson
0ca64f5243 Put a do-nothing set_python_build() back. 2002-10-08 14:59:43 +00:00
Michael W. Hudson
c01f360a4a Backport fdrake's
revision 1.88 of setup.py
    revision 1.46 of Lib/distutils/sysconfig.py

When using a Python that has not been installed to build 3rd-party
modules, distutils does not understand that the build version of the
source tree is needed.

This patch fixes distutils.sysconfig to understand that the running
Python is part of the build tree and needs to use the appropriate
"shape" of the tree. This does not assume anything about the current
directory, so can be used to build 3rd-party modules using Python's
build tree as well.

This is useful since it allows us to use a non-installed debug-mode
Python with 3rd-party modules for testing. It as the side-effect that
set_python_build() is no longer needed (the hack which was added to
allow distutils to be used to build the "standard" extension modules).

This closes SF patch #547734.
2002-10-07 10:38:33 +00:00
Martin v. Löwis
975a80d785 Patch #619493: Prefer rpmbuild over rpm if available. 2002-10-07 05:56:42 +00:00
Michael W. Hudson
a748f06471 backport akuchling's checkin of
revision 1.12 of config.py

Include an empty body when checking for a header file

(Bugfix candidate for 2.2, and likely 2.1 as well)
2002-09-24 11:22:28 +00:00
Neal Norwitz
0299b1c99f SF bug #574235, convert_path fails with empty pathname 2002-08-13 17:49:18 +00:00
Anthony Baxter
3492eb2e7e corrected backport. 'patch' made me sad, it got it horribly wrong
(no idea why, or how)

backport theller's patch

Set the warn_dir option to 0 before running the install command.
This suppresses bogus warnings about modules installed into a directory
not in sys.path.

Bugfix candidate.
2002-04-18 02:32:25 +00:00
Anthony Baxter
a2e92fcbf2 backport tim_one's patch:
SF bug 543840: complex(string) accepts strings with \0
complex_subtype_from_string():  this stopped parsing at the first 0
byte, as if that were the end of the input string.
2002-04-18 02:19:46 +00:00
Michael W. Hudson
c8610f62d3 backport akuchling's checkin of
revision 1.63 of install.py

Revert part of previous patch: several install_* subcommands expect
    .compile to be None, and set it to true if it is.
    Caught by Pearu Peterson.

Bugfix candidate, if the previous change is accepted for
release22-maint.
2002-03-25 13:15:28 +00:00
Michael W. Hudson
5fab811d3c backport akuchling's checkin of
revision 1.62 of install.py

Add missing Boolean options
Remove unused no_compile flag
Initialize the Boolean attribute .compile to 0 instead of None

Bugfix candidate.
2002-03-25 13:15:04 +00:00
Michael W. Hudson
9123ef8a9b Thomas said this was OK.
backport akuchling's checkin of
    revision 1.30 of bdist_wininst.py

Add unlisted Boolean options.  Thomas H., can you please check that I
    got this right?

Bugfix candidate, unless Thomas notes a problem.
2002-03-25 13:14:23 +00:00
Michael W. Hudson
83e9b5a59e backport akuchling's checkin of
revision 1.28 of bdist_rpm.py

[Bug #517451] bdist_rpm didn't list all of its Boolean options.
   (Someone should check the other commands for this same error.)

Bugfix candidate.
2002-03-25 13:13:45 +00:00
Michael W. Hudson
18f69f8e27 Backport a checkin of jvr's:
on MacOSX/Darwin, use ranlib when building static libs.

I hope this belongs on the branch...
2002-03-17 19:47:39 +00:00
Michael W. Hudson
dcaab1fb1b Backport theller's check-in of revision 1.45:
Make it 1.5.2 compatible again.

(I'm not sure how having symlinks around the repository interacts with
branches -- I'm going to tread carefully in here)
2002-02-22 13:55:28 +00:00
Michael W. Hudson
35bbe56667 backport akuchling's checkin of
revision 1.12 of file_util.py

[Bug #220993; may also fix bug #479469] Fix flakiness when old
  installations are present, by always unlinking the destination file
  before copying to it.  Without the unlink(), the copied file remains
  owned by its previous UID, causing the subsequent chmod() to fail.

Bugfix candidate, though it may cause changes on platforms where
  file ownership behaves differently.
2002-02-22 13:22:55 +00:00
Michael W. Hudson
94e5000367 backport akuchling's checkin of
revision 1.11 of install_scripts.py

Restrict the mode to the lowest four octal positions; higher positions
   contain the type of the file (regular file, socket, link, &c.).
   This means that install_scripts will now print
   "changing mode of <file> to 775" instead of "... to 100775".

2.2 bugfix candidate, I suppose, though this isn't actually fixing a bug.

This patch was applied by an alarmingly automated system -- I hope it
worked...
2002-02-22 13:19:54 +00:00
Michael W. Hudson
82d3c7da8b Backport theller's checkin of revision 1.35:
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
2002-02-19 14:15:40 +00:00