Andrew M. Kuchling
8c20916de2
Remove unneeded import
2002-05-30 19:15:16 +00:00
Andrew M. Kuchling
0b5c11252d
Prevent convert_path from crashing if the path is an empty string. Bugfix candidate.
2002-05-06 13:57:19 +00:00
Thomas Heller
69d31b749d
Pass the full pathname to MSVC when compiling a debug version. This
...
allows the debugger to find the source without asking the user to
browse for it.
2002-04-25 17:29:45 +00:00
Thomas Heller
378498dad6
Append the PC specific include 'PC' and library 'PCBuild' directories
...
under NT - this allows distutils to work with the CVS version or the
source distribution.
Wrap a long line.
2002-04-25 17:26:37 +00:00
Thomas Heller
e65008038e
Fix trivial typo.
2002-04-25 17:03:30 +00:00
Barry Warsaw
8570013357
Whitespace normalization. Unka Timmy would be proud.
2002-04-23 18:18:43 +00:00
Marc-André Lemburg
0538f1f2c7
Patch #531901 by Mark W. Alexander: adds a new distutils packager
...
base class (in bdist_packager) and two subclasses which make use
of this base class: bdist_pkgtool (for Solaris) and bdist_sdux (for
HP-UX).
2002-04-17 20:30:10 +00:00
Thomas Heller
4c7fb96b7a
Remove unconditional debugging prints.
2002-04-09 14:16:07 +00:00
Thomas Heller
fd0e82a385
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-09 14:14:38 +00:00
Tim Peters
a863270f04
Revert 0/1 -> False/True change; I didn't intend to muck w/ distutils.
2002-04-04 23:17:31 +00:00
Tim Peters
bc0e910826
Convert a pile of obvious "yes/no" functions to return bool.
2002-04-04 22:55:58 +00:00
Andrew M. Kuchling
f4a4fb9a11
[Patch #536769 ] Add -Xcompiler flag for adding arguments and switches for
...
the compiler
2002-03-29 18:00:19 +00:00
Andrew M. Kuchling
b26ca9db2e
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-22 15:35:17 +00:00
Andrew M. Kuchling
3f1822b468
Add missing Boolean options
...
Remove unused no_compile flag
Initialize the Boolean attribute .compile to 0 instead of None
Bugfix candidate.
2002-03-21 23:46:54 +00:00
Andrew M. Kuchling
da9f0bf4dd
Add unlisted Boolean options. Thomas H., can you please check that I
...
got this right?
Bugfix candidate, unless Thomas notes a problem.
2002-03-21 23:44:01 +00:00
Andrew M. Kuchling
5de82a855e
[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-21 23:27:54 +00:00
Marc-André Lemburg
bbea4717bc
Allow shebang's which use versioned Python binaries. Fixes
...
bug #521526 .
2002-02-28 09:16:21 +00:00
Thomas Heller
d2d58e0496
First version which runs an install-script (specified by the
...
--install-script ... command line option to bdist_wininst) at the end
of the installation and at the start of deinstallation. Output
(stdout, stderr) of the script (if any) is displayed in the last
screen at installation, or in a simple message box at deinstallation.
sys.argv[1] for the script will contain '-install' at installation
time or '-remove' at deinstallation time.
The installation script runs in an environment (embedded by the
bdist_wininst runtime) where an additional function is available as
builtin:
create_shortcut(path, description, filename,
[arguments[, workdir[, iconpath, iconindex]]])
Recreated this file after source changes.
2002-02-20 08:01:19 +00:00
Just van Rossum
005dbb219e
on MacOSX/Darwin, use ranlib when building static libs.
2002-02-11 15:31:50 +00:00
Thomas Heller
745b4609cb
Make it 1.5.2 compatible again.
2002-02-08 14:41:31 +00:00
Marc-André Lemburg
9273ec726c
Forgot to add the new emxccompiler.py from Andrew I. MacIntyre's
...
distutils patch for OS/2.
Here it is...
2002-02-06 18:22:48 +00:00
Andrew M. Kuchling
3b388ec8b3
[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-01 18:29:34 +00:00
Thomas Heller
0c350bfad0
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-01 09:44:09 +00:00
Andrew M. Kuchling
b24231e088
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.
2002-01-31 22:08:38 +00:00
Marc-André Lemburg
2544f51036
OS/2 patches by Andrew I MacIntyre for distutils.
...
Closes patch #435381 .
2002-01-31 18:56:00 +00:00
Martin v. Löwis
9635d0bd1f
Encode MSVC paths as mbcs. Fixes #509117 . 2.2.1 candidate.
2002-01-29 10:23:42 +00:00
Thomas Heller
5cba76df7b
SWIGing a source file <name>.i silently overwrites <name>.c if it is
...
present - at least the swigged file should be named <name>_wrap.c as
this is also SWIG's default. (Even better would be to generate the
wrapped sources in a different location, but I'll leave this for
later).
Newer versions of SWIG don't accept the -dnone flag any more.
Since virtually nobody uses SWIG with distutils, this should do no
harm.
Suggested be Martin Bless on c.l.p.
2002-01-18 20:30:53 +00:00
Martin v. Löwis
9668b933e3
Patch #414775 : Add --skip-build option to bdist command.
2002-01-12 11:27:42 +00:00
Andrew M. Kuchling
3d2d980f50
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).
2001-12-21 15:34:17 +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
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
045af6f8d8
[Bug #404274 ] Restore some special-case code for AIX and BeOS under 1.5.2.
...
This will have to stay until we decide to drop 1.5.2 compatibility
completely.
2001-09-05 12:02:59 +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
Andrew M. Kuchling
a8ea5ba8a9
[Bug #436732 ] install.py does not record a created *.pth file in the
...
INSTALLED_FILES output. Modified version of a patch from
Jon Nelson (jnelson)
2001-09-04 20:06:43 +00:00
Jack Jansen
212a2e1f9f
On the mac some library paths returned were outdated, some were outright funny.
...
Fixed.
2001-09-04 12:01:49 +00:00
Neil Schemenauer
a8aefe535c
Don't use dir() to find instance attribute names.
2001-09-03 15:47:21 +00:00
Neil Schemenauer
69374e4836
Flush output more aggressively. This makes things look better if
...
the setup script is running from inside Vim.
2001-08-29 23:57:22 +00:00
Jack Jansen
e259e5980c
Patch by Bill Noon: added 'dylib' as a library type along with
...
'static' and 'shared'. This fixes extension building for dynamic
Pythons on MacOSX.
2001-08-27 15:08:16 +00:00
Greg Ward
f17efb93d9
Patch #449054 to implement PEP 250. The standard install directory for
...
modules and extensions on Windows is now $PREFIX/Lib/site-packages.
Includes backwards compatibility code for pre-2.2 Pythons. Contributed
by Paul Moore.
2001-08-23 20:53:27 +00:00
Andrew M. Kuchling
db7aed5219
[Patch #441691 ] preprocess() method for Borland C compiler.
...
I have no way of testing this.
2001-08-16 20:17:41 +00:00
Andrew M. Kuchling
b1d6029437
[Patch #444854 from twburton]
...
Add executable extension, needed to get the program name right on Win32
2001-08-16 14:08:02 +00:00
Andrew M. Kuchling
6fb8d3a3d6
[Patch #442530 from twburton]
...
Provide include_dirs argument to all calls to ._preprocess and ._compile
Fix typo: pattern.search(pattern) should be pattern.search(line)
2001-08-16 13:56:40 +00:00
Andrew M. Kuchling
246c425964
Fix for NameError caught by PyChecker.
...
(This command seems to be essentially untested; should fix that...)
2001-08-13 13:56:24 +00:00
Andrew M. Kuchling
f4aa684132
[Bug #414032 ] Make the 'sdist' command work when the distribution contains
...
libraries. This is done by adding a .get_source_files() method,
contributed by Rene Liebscher and slightly modified.
Remove an unused local variable spotted by PyChecker
2001-08-10 20:24:33 +00:00
Andrew M. Kuchling
13f4ea25d4
Remove unused variable
2001-08-10 19:00:41 +00:00
Andrew M. Kuchling
5079fe07fe
Fix typo caught by PyChecker
2001-08-10 19:00:15 +00:00
Andrew M. Kuchling
665f248806
Add forgotten import
2001-08-10 18:59:59 +00:00
Fred Drake
981a1787b7
Wrap a comment to fit in 80 columns.
...
Use construction-syntax for an exception to make the argument easier
to read.
2001-08-10 18:59:30 +00:00
Andrew M. Kuchling
db988b1ed3
Use .get_license()
2001-08-10 18:50:11 +00:00
Andrew M. Kuchling
fa7dc57d6c
[Bug #412271 , bug #449009 ] Use 'license' as the attribute name,
...
though 'licence' is still supported for backward-compatibility
(Should I add a warning to get_licence(), or not bother?)
Also fixes an UnboundLocalError noticed by PyChecker
2001-08-10 18:49:23 +00:00
Andrew M. Kuchling
6386a4c846
Import UnknownFileError
2001-08-09 21:02:34 +00:00
Andrew M. Kuchling
106ffdb672
Import the errno module
2001-08-09 20:59:53 +00:00
Andrew M. Kuchling
affadeb9fd
Use correct variable name
2001-08-09 20:57:46 +00:00
Fred Drake
c916cdc5ca
Miscellaneous minor cleanups.
2001-08-02 20:03:12 +00:00
Just van Rossum
8d8e7a3256
Do convert_path() on script paths (now PyXML builds out of the box
...
under MacOS.)
2001-07-29 21:39:18 +00:00
Marc-André Lemburg
7cf92fa1c8
Add backwards compatibility.
2001-07-26 18:06:58 +00:00
Martin v. Löwis
4f1cd8bdcb
Patch #411138 : Rename config.h to pyconfig.h. Closes bug #231774 .
2001-07-26 13:41:06 +00:00
Greg Ward
7cf7e7e529
Undo revision 1.7: always mangle a #! line containing "python" to point
...
to the current Python interpreter (ie. the one used for
building/installation), even (especially!) if "/usr/bin/env" appears in
the #! line.
Rationale: installing scripts with "#!/usr/bin/env python" is asking for
trouble, because
1) it might pick the wrong interpreter (not the one used to
build/install the script)
2) it doesn't work on all platforms (try it on IRIX 5, or on Linux
with command-line options for python)
3) "env" might not be in /usr/bin
2001-07-25 20:20:11 +00:00
Greg Ward
e628a2fa85
Don't "import *" from stat at all -- just import what's needed, and
...
do it back in copy_file() (not at module level).
2001-07-25 19:48:03 +00:00
Andrew M. Kuchling
5a3e4cb0a2
Patch #429442 from Jason Tishler: Corrects sys.platform and
...
distutils.util.get_platform() problems caused by the cruft contained
in Cygwin's uname -s.
2001-07-20 19:29:04 +00:00
Fred Drake
70b014d3d3
Minor changes for stylistic cleanliness and consistency.
2001-07-18 18:39:56 +00:00
Guido van Rossum
63a47402b3
Fix a mismatched parenthesis in the last patch.
2001-07-16 14:46:13 +00:00
Andrew M. Kuchling
286b107bea
[Bug #441527 ] Fixes for preprocessor support, contributed by Tarn
...
Weisner Burton
2001-07-16 14:19:20 +00:00
unknown
a5aa0b5261
dummy checkin for testing, please ignore
2001-07-04 16:52:02 +00:00
Jack Jansen
9020bcebc8
- _filename_to_abs() didn't cater for .. components in the pathname. Fixed.
...
- compile() didn't return a (empty) list of objects. Fixed.
- the various _fix_xxx_args() methods weren't called (are they new or did I overlook them?). Fixed.
2001-06-19 21:23:11 +00:00
Just van Rossum
92c5bdbc19
Fixed -D emulation for symbols with a value, as specified with the define_macros Extension argument.
2001-06-19 19:44:02 +00:00
Andrew M. Kuchling
0152fbdc7f
Fix bug #418369 : typo in bdist_rpm
2001-05-21 20:34:38 +00:00
Guido van Rossum
99f9baa331
Fixed botched indent in _init_mac() code. (It may never be executed,
...
but it still can't have any syntax errors. Went a little too fast
there, Jack? :-)
2001-05-17 15:03:14 +00:00
Jack Jansen
dd13a20490
Made distutils understand the MacPython Carbon runtime model. Distutils will build for the runtime model you are currently using for the interpreter.
2001-05-17 12:52:01 +00:00
Andrew M. Kuchling
b3ca303a4e
Fix typo in docstring
2001-04-23 17:13:03 +00:00
Andrew M. Kuchling
c42402fa19
Bump version # for final release
2001-04-23 16:01:06 +00:00
Guido van Rossum
b61914dd5b
Pete Shinners discovered that zipfile.ZipFile() is called with mode
...
argument "wb", while the only valid modes are "r", "w" or "a". Fix
this by changing the mode to "w".
2001-04-14 16:17:00 +00:00
Thomas Heller
f6cdead8e9
Since bdist_wininst.py contains the installer executable, it had to be
...
rebuild.
2001-04-10 18:57:07 +00:00
Andrew M. Kuchling
7880e5ecd7
Patch #413912 from Steve Majewski: Add .m to the list of extensions
...
in order to support Objective-C.
2001-04-05 15:46:48 +00:00
Andrew M. Kuchling
f89d993e07
Back out the requirement to supply a version number
2001-03-31 02:41:01 +00:00
Andrew M. Kuchling
88b0884787
Change rfc822_escape() to ensure there's a consistent amount of whitespace
...
after each newline, instead of just blindly inserting a space at
the start of each line. (Improvement suggested by Thomas Wouters)
2001-03-23 17:30:26 +00:00
Andrew M. Kuchling
ffb963c7f6
Use the get_contact*() accessors instead of get_maintainer*()
2001-03-22 15:32:23 +00:00
Andrew M. Kuchling
6e9c0baa65
Remove redundant import
2001-03-22 03:50:09 +00:00
Andrew M. Kuchling
ac20f773f3
Back out conversion to string methods; the Distutils is intended to work
...
with 1.5.2
2001-03-22 03:48:31 +00:00
Andrew M. Kuchling
a7f225d88a
Call the write_pkg_info method
2001-03-22 03:10:05 +00:00
Andrew M. Kuchling
a7210ed272
Add 'platforms' and 'keywords' attributes to the DistributionMetadata class,
...
along with options to print them.
Add a finalize_options() method to Distribution to do final processing
on the platform and keyword attributes
Add DistributionMetadata.write_pkg_info() method to write a PKG-INFO file
into the release tree.
2001-03-22 03:06:52 +00:00
Andrew M. Kuchling
df66df0a28
Patch #407434 : add rfc822_escape utility function
2001-03-22 03:03:41 +00:00
Andrew M. Kuchling
7620bbdcbf
Fix bug #233253 : the --define and --undef options didn't work, whether
...
specified on the command-line or in setup.cfg. The option processing
leaves them as strings, but they're supposed to be lists.
2001-03-17 20:15:41 +00:00
Andrew M. Kuchling
898f099dc6
Bug #409403 : Signal an error if the distribution's metadata has no version
2001-03-17 19:59:26 +00:00
Thomas Heller
d179be8b8b
Distutils version number has been changed from 1.0.1 to 1.0.2pre
...
before this get forgotten again.
Should probably be set to 1.0.2 before final release of python 2.1
Does someone still release distutils separate from python?
2001-03-16 21:00:18 +00:00
Thomas Heller
5c5ea1a461
The bdist_wininst.py command has been recreated after wininst.exe
...
has been changed to include an uninstaller.
I forgot to mention in the uninstaller checkin that the logfile
name (used for uninstalling) has been changed from
<module>.log to <module>-wininst.log. This should prevent
conflicts with a distutils logfile serving the same purpose.
The short form of the --bdist-dir (-d) option has been removed
because it caused conflicts with the short form of the --dist-dir
option.
2001-03-16 20:57:37 +00:00