Commit Graph

657 Commits

Author SHA1 Message Date
Martin v. Löwis 53b578eba1 Issue #6065: Do not try to build a version-independent
installer if the package has extension modules.

Also add NEWS entry for #5311.
2009-05-24 19:10:52 +00:00
Tarek Ziadé aafd6b850e fixed encoding 2009-05-22 09:42:43 +00:00
Tarek Ziadé 7d7127dd84 fixed the 'package' option of build_ext 2009-05-19 16:17:21 +00:00
Tarek Ziadé fcc7f039ec Fixed the library extension when distutils build_ext is used inplace 2009-05-18 08:03:37 +00:00
Tarek Ziadé cb76804b17 #6041: sdist and register now use the check command. No more duplicate code for metadata checking 2009-05-16 16:37:06 +00:00
Tarek Ziadé 8953913cf5 pep8-fied distutils.command.sdist + more tests 2009-05-14 14:56:14 +00:00
Tarek Ziadé 064a768101 more test coverage for distutils sdist command 2009-05-14 12:40:59 +00:00
Benjamin Peterson e9a2b8a0e3 the compiler attribute is used in setup.py; can't rename 2009-05-12 21:06:05 +00:00
Tarek Ziadé 972480d999 fixed #5977: distutils build_ext.get_outputs was not using the inplace option 2009-05-12 17:07:14 +00:00
Tarek Ziadé 4ba25c25d2 removing the assert statement so the code works when Python is run with -O 2009-05-12 07:01:29 +00:00
Tarek Ziadé 234ab8fc1c Added tests form install_lib and pep8-fied the module 2009-05-10 11:42:46 +00:00
Tarek Ziadé d5d83424d2 fixed #5984 and improved test coverage 2009-05-10 10:12:08 +00:00
Tarek Ziadé ff748cd6eb removed remaining spaces 2009-05-07 21:13:02 +00:00
Tarek Ziadé 56342d578e removed string.split usage 2009-05-06 08:11:00 +00:00
Tarek Ziadé ccf608c94c more build_clib cleanup + test coverage 2009-05-06 08:05:47 +00:00
Tarek Ziadé b04a05709d pep8-fied build_clib module : it is now similar to the one in 3.x 2009-05-06 07:41:53 +00:00
Tarek Ziadé d2bb1a5377 Added a test and cleaned check_library_list to be ready to fix #5940 2009-05-06 07:17:52 +00:00
Steven Bethard ab538fc2b2 Update bdist_msi so that the generated MSIs for pure Python modules can install to any version of Python, like the generated EXEs from bdist_wininst. (Previously, you had to create a new MSI for each version of Python.) 2009-05-05 01:31:22 +00:00
Tarek Ziadé 783f493173 DistutilsSetupError was not raised when one single warning occured 2009-04-17 14:29:56 +00:00
Tarek Ziadé 3295eed64b removed string usage and added a test for _clean 2009-04-12 17:02:08 +00:00
Tarek Ziadé e643bed198 added a test for finalize_options 2009-04-12 16:45:32 +00:00
Tarek Ziadé f6f4b3084c added a simple test for search_cpp 2009-04-12 16:31:24 +00:00
Tarek Ziadé 7bea344d35 pep8-fied the module before adding tests 2009-04-12 15:03:50 +00:00
Tarek Ziadé aa48798f1e removed the print statements and added a test 2009-04-12 14:53:51 +00:00
Tarek Ziadé c2936b786a testing a full check case 2009-04-11 15:14:17 +00:00
Tarek Ziadé 942825f7de #5732: added the check command into Distutils 2009-04-11 14:55:07 +00:00
Tarek Ziadé ad95826c33 Fixed #5731: Distutils bdist_wininst no longer worked on non-Windows platforms 2009-04-09 21:36:44 +00:00
Tarek Ziadé fdda68e030 pep8-fied method names 2009-04-05 23:03:10 +00:00
Tarek Ziadé 64408fb4c5 Fixed #5095: msi missing from Distutils bdist formats 2009-04-05 22:51:09 +00:00
Georg Brandl 63959bb973 #5631: add upload to list of possible commands, which is presented in --help-commands. 2009-04-01 04:32:39 +00:00
Tarek Ziadé 2bdefb3eee catching msvc9compiler error as well 2009-03-31 22:44:10 +00:00
Tarek Ziadé 9e47ce49a0 #5583 Added optional Extensions in Distutils 2009-03-31 22:27:23 +00:00
Tarek Ziadé 899dd1221d added tests to the install_headers command 2009-03-31 20:55:21 +00:00
Tarek Ziadé a961a0444d added test to the install_data command 2009-03-31 20:54:38 +00:00
Tarek Ziadé e899b711df more tests for the upload command 2009-03-31 20:53:55 +00:00
Tarek Ziadé ca2b8d283a more tests for the register command 2009-03-31 20:53:13 +00:00
Tarek Ziadé 023862890f added tests for the clean command 2009-03-31 20:50:59 +00:00
Tarek Ziadé ce45a967c2 removing the force-optimized option as discussed in #1533164 2009-03-02 05:38:44 +00:00
Tarek Ziadé 7334735ee1 Issues #1533164 and #5378: Added quiet and force-optimize options to Distutils bdist_rpm command 2009-02-28 10:08:02 +00:00
Tarek Ziadé dda92f7f02 Issue #5052: make Distutils compatible with 2.3 again. 2009-02-27 12:53:34 +00:00
Tarek Ziadé b5fc89ee57 removed unused import 2009-02-26 23:44:00 +00:00
Tarek Ziadé 0e5001eff9 fixed the data_files inclusion behavior 2009-02-17 23:06:51 +00:00
Tarek Ziadé f68b5b8046 #2279 added the plain path case for data_files 2009-02-17 09:42:44 +00:00
Tarek Ziadé 7dd533963f Fixed #2279: distutils.sdist.add_defaults now add files listed in package_data and data_files 2009-02-16 21:38:01 +00:00
Tarek Ziadé 2432b0b367 Fixed #4524: distutils build_script command failed with --with-suffix=3 2009-02-13 23:00:43 +00:00
Tarek Ziadé 0d4fd3493e Fixed #5132: enable extensions to link on Solaris 2009-02-05 22:52:52 +00:00
Mark Hammond 6ed1cb0014 Fix issue5075: bdist_wininst should not depend on the vc runtime? 2009-01-29 12:13:31 +00:00
Tarek Ziadé aaedcef578 Fixed #1885: --formats=tar,gztar was not working properly in the sdist command 2009-01-25 23:34:00 +00:00
Tarek Ziadé 7c28be8df5 added missing module docstring 2009-01-25 22:11:04 +00:00
Tarek Ziadé 9f369e9163 Issue #5052: removed backward compatibility information (out of date) 2009-01-25 22:09:10 +00:00
Tarek Ziadé 1a240fb9f0 fixed #4394 make the storage of the password optional in .pypirc 2009-01-08 23:56:31 +00:00
Tarek Ziadé d81780b8b0 using clearer syntax 2009-01-04 10:37:52 +00:00
Tarek Ziadé 85d6fb5022 fixed #1702551: distutils sdist was not pruning VCS directories under win32 2009-01-04 00:04:49 +00:00
Tarek Ziadé e4c75bb585 fixed #4400 : distutils .pypirc default generated file was broken. 2008-12-24 19:10:05 +00:00
Brett Cannon 047e4a915d Update distutils so that it triggers no warnings when run under -3. 2008-08-17 04:16:04 +00:00
Hirokazu Yamamoto 41a4f4631b Fixed test_distutils error (test_build_ext) on VC6. 2008-08-14 05:50:43 +00:00
Mark Hammond 5bd88333ee Fix bdist_wininst --user-access-control for win2k 2008-05-31 05:11:07 +00:00
Mark Hammond 88eeef35d7 bdist_wininst now works correctly when both --skip-build and --plat-name are specified. 2008-05-28 01:54:55 +00:00
Georg Brandl 392c6fc02d ConfigParser renaming reversal part 3: move module into place and adapt imports. 2008-05-25 07:25:25 +00:00
Alexandre Vassalotti eb8cef2664 Fixed import of configparser in the distutils module.
If configparser is unavailable, try to import configparser using its
old name. This is required for backward-compatibility with older
Python versions.
2008-05-16 02:06:59 +00:00
Alexandre Vassalotti 7663f9e4ff Revert distutils changes done in r63248.
As explained by Marc-Andre Lemburg, distutils needs to stay
backward-compatible. Therefore, it should use the old ConfigParser
module name.
2008-05-15 00:33:57 +00:00
Alexandre Vassalotti e2514c6f10 Updated import statements to use the new `configparser` module name.
Updated the documentation to use the new name.
Revert addition of the stub entry for the old name.

Georg, I am reverting your changes since this commit should propagate
to py3k.
2008-05-14 22:44:22 +00:00
Andrew M. Kuchling aac5c8669f #1858: re-apply patch for this, adding the missing files 2008-05-11 14:00:00 +00:00
Brett Cannon 10f5db6424 Revert r62998 as it broke the build (seems distutils.config is missing). 2008-05-10 20:52:01 +00:00
Andrew M. Kuchling cd8001c8ed #1858 from Tarek Ziade:
Allow multiple repositories in .pypirc; see http://wiki.python.org/moin/EnhancedPyPI
for discussion.

The patch is slightly revised from Tarek's last patch: I've simplified
the PyPIRCCommand.finalize_options() method to not look at sys.argv.
Tests still pass.
2008-05-10 19:51:55 +00:00
Christian Heimes 17433d206c Add --user option to build_ext 2008-05-09 12:19:09 +00:00
Christian Heimes af748c3ab8 Implemented PEP 370 2008-05-06 22:41:46 +00:00
Mark Hammond 7c5c8e6823 #2581: Vista UAC/elevation support for bdist_wininst 2008-05-02 12:48:15 +00:00
Mark Hammond 495cf99aaf Issue #2513: enable 64bit cross compilation on windows. 2008-04-07 01:53:39 +00:00
Georg Brandl 1df03405fc #1725737: ignore other VC directories other than CVS and SVN's too. 2008-03-06 06:47:18 +00:00
Christian Heimes c5f05e45cf Patch #2167 from calvin: Remove unused imports 2008-02-23 17:40:11 +00:00
Guido van Rossum 8bc0965adf Removed uses of dict.has_key() from distutils, and uses of
callable() from copy_reg.py, so the interpreter now starts up
without warnings when '-3' is given.  More work like this needs to
be done in the rest of the stdlib.
2008-02-21 18:18:37 +00:00
Andrew M. Kuchling 2d6c13e733 Close manifest file.
This change doesn't make any difference to CPython, but is a necessary fix for Jython.
2008-02-21 14:23:38 +00:00
Christian Heimes 3af3ecca92 Fixed paths to Windows build directories in build_ext.py
Use vsbuild instead of devenv in build.bat and _bsddb.vcproj
2008-02-03 14:34:18 +00:00
Georg Brandl 501601591b #1530959: change distutils build dir for --with-pydebug python builds. 2008-01-21 17:42:40 +00:00
Guido van Rossum 27edd829d7 Patch #1696. Don't attempt to close None in dry-run mode. 2008-01-02 19:00:46 +00:00
Christian Heimes cdaa2cbfd5 Added wininst-9.0.exe executable for VS 2008
Integrated bdist_wininst into PCBuild9 directory
2007-12-31 14:47:07 +00:00
Christian Heimes 3305c52de7 Applied my patch #1455 with some extra fixes for VS 2005
The new msvc9compiler module supports VS 2005 and VS 2008. I've also fixed build_ext to support PCbuild8 and PCbuild9 and backported my fix for xxmodule.c from py3k. The old code msvccompiler is still in place in case somebody likes to build an extension with VS 2003 or earlier.
I've also updated the cygwin compiler module for VS 2005 and VS 2008. It works with VS 2005 but I'm unable to test it with VS 2008. We have to wait for a new version of cygwin.
2007-12-03 13:47:29 +00:00
Georg Brandl aef205d1a8 #1120: put explicit version in the shebang lines of pydoc, idle
and smtpd.py scripts that are installed by setup.py. That way, they
work when only "make altinstall" is used.
2007-09-12 19:29:28 +00:00
Mark Hammond 1bb124ad0d [ 1761786 ] distutils.util.get_platform() return value on 64bit Windows
As discussed on distutils-sig: Allows the generated installer name on
64bit Windows platforms to be different than the name generated for
32bit Windows platforms.
2007-08-21 01:05:16 +00:00
Martin v. Löwis 254b8f9096 Change location of the package index to pypi.python.org/pypi 2007-07-25 16:24:23 +00:00
Neal Norwitz 4a700bb469 SF 1668596/1720897: distutils now copies data files
even if package_dir is empty.

This needs to be backported.  I'm too tired tonight.  It would be great
if someone backports this if the buildbots are ok with it.  Otherwise,
I will try to get to it tomorrow.
2007-06-01 07:29:12 +00:00
Georg Brandl fb4b3b77c7 Bug #1706381: Specifying the SWIG option "-c++" in the setup.py file
(as opposed to the command line) will now write file names ending in
".cpp" too.
2007-04-24 15:27:13 +00:00
Georg Brandl 18c47f6a3b Patch #1569798: fix a bug in distutils when building Python from a
directory within sys.exec_prefix.
2007-03-13 10:19:22 +00:00
Martin v. Löwis 0a2032673c Bug #1600860: Search for shared python library in LIBDIR, not
lib/python/config, on "linux" and "gnu" systems.
Will backport.
2007-02-09 12:36:48 +00:00
Matthias Klose d149d0c76a - Fix build failure on kfreebsd and on the hurd. 2006-12-03 17:16:41 +00:00
Martin v. Löwis 45cd4ff95d Patch #1360200: Use unmangled_version RPM spec field to deal with
file name mangling.
Will backport to 2.5.
2006-11-12 18:56:03 +00:00
Phillip J. Eby 305e778a82 Fix SF#1566719: not creating site-packages (or other target directory) when
installing .egg-info for a project that contains no modules or packages,
while using --root (as in bdist_rpm).
2006-11-10 00:33:36 +00:00
Martin v. Löwis 5310e5078a - Patch #1060577: Extract list of RPM files from spec file in
bdist_rpm
Will backport to 2.5.
2006-11-04 18:14:06 +00:00
Andrew M. Kuchling 9d57e53e4e [Bug #1545341] Allow 'classifier' parameter to be a tuple as well as a list. Will backport. 2006-10-06 13:18:26 +00:00
Martin v. Löwis 8b274265f0 Add MSVC8 project files to create wininst-8.exe. 2006-10-04 15:25:28 +00:00
Phillip J. Eby 137ff79329 Fix SF#1457312: bad socket error handling in distutils "upload" command. 2006-07-10 19:18:35 +00:00
Martin v. Löwis 4548239e2b Bug #1267547: Put proper recursive setup.py call into the
spec file generated by bdist_rpm.
2006-07-03 12:28:58 +00:00
Ronald Oussoren 58f8eba372 Disable linking extensions with -lpython2.5 for darwin. This should fix bug
#1487105.
2006-05-23 11:47:16 +00:00
Martin v. Löwis a07fbce451 Rename parameters to match the documentation (which
in turn matches Microsoft's documentation).
Drop unused parameter in CAB.append.
2006-05-01 16:14:16 +00:00
Georg Brandl bffb0bc064 In stdlib, use hashlib instead of deprecated md5 and sha modules. 2006-04-30 08:57:35 +00:00
Martin v. Löwis 10acfd00b2 Patch #1429775: Link Python modules to libpython on linux if
--enable-shared. Fixes #832799.
2006-04-10 12:39:36 +00:00
Anthony Baxter 4ef3a23a35 whitespace normalisation 2006-03-30 12:59:11 +00:00
Phillip J. Eby 2e550b3dd2 Implementation for patch request #1457316: support --identity option
for setup.py "upload" command.
2006-03-30 02:12:14 +00:00
Phillip J. Eby 02e19975d4 Patch #1459476: install PKG-INFO metadata alongside distutils-installed packages. 2006-03-27 21:55:21 +00:00