378 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
Andrew M. Kuchling
ec3b3e675d Backport to 2.2: [Bug #570655] Fix misleading option text 2002-11-04 13:33:47 +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
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
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
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
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
Thomas Heller
e138f369e6 Explicitely list the metadata attributes to show
in the gui.
Updated to include the new exe-file.
2001-10-05 20:40:48 +00:00
Thomas Heller
c010c17f4b Implement PEP250: Use Lib/site-packages under windows.
bdist_wininst doesn't use the NT SCHEME any more, instead
a custom SCHEME is used, which is exchanged at installation
time, depending on the python version used.

Avoid a bogus warning frpom install_lib about installing
into a directory not on sys.path.
2001-09-05 13:00:40 +00:00
Andrew M. Kuchling
4d335b3b9b [Bug #444589] Record empty directories in the install_data command
Slightly modified version of patch from Jon Nelson (jnelson).
2001-09-04 20:42:08 +00:00