789 Commits

Author SHA1 Message Date
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
Michael W. Hudson
e8c8814da7 Backport loewis' checkin of revision 1.44:
Encode MSVC paths as mbcs. Fixes #509117. 2.2.1 candidate.

(apparently 1.5.2 compatibility is still a goal for distutils, but
I'll wait until that gets amended on the trunk...)
2002-02-06 17:09:18 +00:00
Michael W. Hudson
461540b85a Backport of akuchling's checkin of 1.10:
Suggested by Pete Shinners: treat .m and .mm files as source code.

Question for Jack Jansen: is this reasonable?

Candidate for 2.2 release branch (if Jack thinks it's OK).

Not sure how this wasn't on the branch already, seeing as I thought it
went into 2.2.
2001-12-28 10:20:06 +00:00
Thomas Heller
f499b030bd Recreated after source changes. 2001-12-18 21:08:15 +00:00
Thomas Heller
c7cb9ed35f Second part of fix for bug [#483982] Python 2.2b2 bdist_wininst
crashes.

If no external zip-utility is found, the archive is created by the
zipfile module, which behaves different now than in 2.1: if the
zip-file is created in the root directory if the distribution, it will
contain an (empty) version of itself.

This triggered the above bug - so it's better to create the zip-file
far away in the TMP directory.
2001-12-18 20:13:40 +00:00
Marc-André Lemburg
90294d01be Joe VanAndel wrote:
>
> When using 'distutils' (shipped with Python 2.1) I've found that my
> Python scripts installed with a first line of:
>
> #!/usr/bin/python2.1None
>
> This is caused by distutils trying to patch the first line of the python
> script to use the current interpreter.
2001-12-11 20:44:42 +00:00
Fred Drake
d15db5c711 When using GCC, use the right option to add a directory to the list of dirs
searched for a dependency for runtime linking.
This closes SF bug #445902.
2001-12-11 05:04:24 +00:00
Michael W. Hudson
fb173cd471 Fix for
[ #409430 ] pydoc install broken
2001-12-10 16:15:44 +00:00
Michael W. Hudson
49bdaede1b Fix for
[ #477371 ] build_scripts can use wrong #! line

scripts now get "built" into a directory

build/scripts-$(PYTHON_VERSION)/
2001-12-10 15:28:30 +00:00
Fred Drake
9028d0a525 Visious hackery to solve a build-control problem related to our use of
distutils for the library modules built as shared objects.  A better solution
appears possible, but with the threat that the distutils becomes more
magical ("complex").
This closes SF bug #458343.
2001-12-06 22:59:54 +00:00
Andrew M. Kuchling
3ecc1ce529 [Bug #475009] Tighten the pattern for the first line, so we don't
adjust it when a versioned interpreter is supplied (#!.../python2 ...)
2001-12-06 21:29:28 +00:00
Fred Drake
21d45356b8 Whitespace normalization. 2001-12-06 21:01:19 +00:00
Fred Drake
b94b849d65 Whitespace normalization. 2001-12-06 20:51:35 +00:00
Thomas Heller
bcd8975740 Use a version number of 0.0.0 instead of ???. The latter leads to
invalid filenames on Windows when building without specifying a
version number in the setup script.

See also
http://mail.python.org/pipermail/distutils-sig/2001-November/002656.html

Bugfix candidate.
2001-12-06 20:44:19 +00:00
Andrew M. Kuchling
d303b61eb4 [Bug #459270] Fix incorrect docstring 2001-12-06 16:32:05 +00:00
Jack Jansen
92c2ebf1b2 The libraries argument was completely ignored, fixed. Reported by
Tom Loredo.
2001-11-10 23:20:22 +00:00
Thomas Heller
be63884d50 With Andrew's blessing: distutils version number is now 1.0.3. 2001-10-05 20:43:09 +00:00