Commit Graph

1388 Commits

Author SHA1 Message Date
Tarek Ziadé ae6acfc9a1 pep8-fied distutils.dist module 2009-05-16 18:29:40 +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
Antoine Pitrou f541378d13 Fix bootstrapping by removing uses of the copy module in distutils 2009-05-15 17:27:30 +00:00
Tarek Ziadé cbb4f9ef58 #6022 fixed test_get_outputs so it doesn't leaves a test file in the cwd 2009-05-14 20:14:13 +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
Tarek Ziadé d547144f0f adding void to the c function 2009-05-13 22:16:03 +00:00
Tarek Ziadé 1652410429 added an inifoo in the C file, to avoid a warning by the MSVC9 linker 2009-05-13 21:30:06 +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é 68e27eb834 distutils.test_build_clib added a new line at the end of the file, to avoid a warning with some compilers 2009-05-11 08:45:17 +00:00
Tarek Ziadé 2bb084e643 fixed test_build_ext for win32 2009-05-10 21:27:55 +00:00
Tarek Ziadé e3f68a1a96 fixed test for all platforms 2009-05-10 12:36:48 +00:00
Tarek Ziadé 450ca11a58 now using EnvironGuard everywhere 2009-05-10 12:17:30 +00:00
Tarek Ziadé d35f2a33d5 refactored test_sysconfig so it uses test.test_support.EnvironmentVarGuard 2009-05-10 11:59:30 +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é 812d77152e #5976: fixed distutils test_check_environ 2009-05-09 10:06:00 +00:00
Tarek Ziadé e2be83def8 Fixed Issue 5900: distutils.command.build_ext - Ensure RUNPATH is added to extension modules with RPATH if GNU ld is used 2009-05-09 08:28:53 +00:00
Tarek Ziadé 6f9977852f fixed AR/ARFLAGS values in test_sysconfig 2009-05-07 23:01:56 +00:00
Tarek Ziadé 99f660af3f Fixed #5941: added ARFLAGS for the archiver command. 2009-05-07 21:20:34 +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é a1b91d944b Fixed #5874 : distutils.tests.test_config_cmd is not locale-sensitive anymore 2009-04-29 08:03:46 +00:00
Tarek Ziadé bcddf6777a #5810: Fixed Distutils test_build_scripts 2009-04-25 12:51:59 +00:00
Tarek Ziadé d567c38ef2 Issue #4951: Fixed failure in test_httpservers 2009-04-25 12:38:08 +00:00
Tarek Ziadé 2c4e741447 making BuildWinInstTestCase silent in case bdist_wininst is not run under win32 2009-04-20 10:33:47 +00:00
Tarek Ziadé 92d77b7eac #5795 sysconfig._config_vars was shadowed in tearDown 2009-04-20 07:53:55 +00:00
Tarek Ziadé 783f493173 DistutilsSetupError was not raised when one single warning occured 2009-04-17 14:29:56 +00:00
Tarek Ziadé eb6e0f583d pep8-fied 2009-04-13 20:14:54 +00:00
Tarek Ziadé 2fdd0d5ab7 improved test coverage for distutils.cmd 2009-04-13 20:03:44 +00:00
Tarek Ziadé 710fbc32ae deactivate test_search_cpp under win32 2009-04-13 12:42:26 +00:00
Tarek Ziadé 156c31a7be Fixed #5607: Distutils test_get_platform was failing fo Mac OS X fat binaries. 2009-04-13 12:34:01 +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
Tarek Ziadé d9e221d232 added a simplest test to distutils.spawn._nt_quote_args 2009-04-05 22:04:38 +00:00
Tarek Ziadé faa6b121fb Fixed #1491431: distutils.filelist.glob_to_re was broken for some edge cases (detailed in the test 2009-04-05 21:44:08 +00:00
Tarek Ziadé 453d953f3e Fixed 5694: removed spurious test output in Distutils 2009-04-05 18:31:24 +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é 3bb5a9642b fixed the test for win32 CompileError 2009-03-31 22:47:01 +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é 1a1158f955 making sdist and config test silents 2009-03-31 20:56:11 +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é c7cd138bc2 using log.warn for sys.stderr 2009-03-31 20:48:31 +00:00
Georg Brandl 5adab304e3 Fix typo. 2009-03-28 00:48:48 +00:00
Hirokazu Yamamoto bb7467f6e3 Added skip for old MSVC. 2009-03-15 22:43:14 +00:00
Tarek Ziadé 61585c260c Issue #5472: Fixed distutils.test_util tear down 2009-03-11 12:48:04 +00:00
Tarek Ziadé 943b24e7e4 Issue #5394: removed > 2.3 syntax from distutils.msvc9compiler 2009-03-07 00:32:45 +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é e3bc0eff25 Fixed #5316 : test failure in test_site 2009-02-25 22:29:27 +00:00
Tarek Ziadé 11b34d07d8 more test coverage 2009-02-23 12:41:29 +00:00
Tarek Ziadé 7b47172bec Removing unused __main__ sections 2009-02-22 20:15:41 +00:00
Tarek Ziadé 28bba74b7f removing map and lambda usage, so the test is similar to py3k's branch one 2009-02-22 20:11:46 +00:00
Tarek Ziadé 90b7d56d91 moved distutils.text_file tests into a real unittest class 2009-02-22 19:58:12 +00:00
Mark Dickinson 3e4caeb3bf Issue #5341: Fix a variety of spelling errors. 2009-02-21 20:27:01 +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é ae9dc8c48a #2279: use os.sep so the MANIFEST file test work on win32 2009-02-16 21:41:54 +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é 09d3d2ded6 Replace variable 2009-02-14 14:12:30 +00:00
Tarek Ziadé 1369900619 Fix for #5257: refactored all tests in distutils, so they use a temporary directory. 2009-02-14 14:10:23 +00:00
Tarek Ziadé 544c3e19e6 fix the environ for distutils test_util 2009-02-13 23:41:57 +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é 275958aacf Issue #2461: added tests for distutils.util 2009-02-13 22:22:03 +00:00
Tarek Ziadé 6f1d931495 reverted leak fix, to use the one done in py3k branch (r67382) 2009-02-13 16:13:16 +00:00
Tarek Ziadé b516c126ef fixing the leak introduced in r69304 2009-02-12 20:56:21 +00:00
Tarek Ziadé 74fbf60e8c Fixed #3386: the optional prefix argument was ignored under OS2 and NT in distutils.sysconfig.get_python_lib 2009-02-10 12:31:09 +00:00
Tarek Ziadé 8be8765a2e #3986 replacing string and types call (like in the Py3k branch), and put exec_msg call at the right place 2009-02-07 00:05:39 +00:00
Neil Schemenauer aa397d1806 Convert "srcdir" into an absolute path if that seems prudent. Currrently
the only user of this is Lib/distutils/tests/test_build_ext.py (in order
to find the source for xxmodule.c).  I'm not sure if other platforms
need similar tweaks, I'm not brave enough to attempt it without being
able to test.
2009-02-06 21:33:45 +00:00
Tarek Ziadé 0d6705b234 Fixed #5167: test_customize_compiler does not apply under non unix compilers 2009-02-06 13:27:38 +00:00
Tarek Ziadé 98da8e151a removed types usage and added test coverage (work for #3986) 2009-02-06 08:55:23 +00:00
Tarek Ziadé c5ed5ba585 Fixed #3987 : removed unused import 2009-02-06 08:20:15 +00:00
Tarek Ziadé 05adf073cc fixed #1520877: now distutils reads Read from the environment/Makefile 2009-02-06 01:15:51 +00:00
Tarek Ziadé aaf2e18841 using >= so setting verbose to 2 will work as well 2009-02-06 00:49:45 +00:00
Tarek Ziadé 5dde357c9e README now reflects the current state 2009-02-06 00:46:57 +00:00
Tarek Ziadé d5eb985492 Fixed #1276768: verbose option was not used in the code. 2009-02-06 00:31:59 +00:00
Tarek Ziadé 0d4fd3493e Fixed #5132: enable extensions to link on Solaris 2009-02-05 22:52:52 +00:00
Neil Schemenauer a52f1c62eb Fix test_build_ext.py to work when building in a separate directory.
Since "srcdir" should now be defined on all platforms, use it to
find the module source.
2009-02-05 16:25:16 +00:00
Neil Schemenauer e844be6d9a Since sysconfig.get_python_inc() now works when building in a
directory other than the source directory, simplify the test code in
test_sysconfig.py.
2009-02-05 16:19:05 +00:00
Neil Schemenauer 444df45739 Fix get_python_inc() to work when building in a directory separate from
the source.  Also, define 'srcdir' on non-posix platforms.
2009-02-05 16:14:39 +00:00
Tarek Ziadé 97a69f0c10 Fix comment for #1835 2009-02-05 09:06:23 +00:00
Tarek Ziadé 5da9a51d9d fixed test_make_distribution so it runs on any platform, as long as tar an gzip are available 2009-01-29 23:49:17 +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é ef249b13eb Fixed #4863: removed distutils.mwerkscompiler 2009-01-25 18:19:25 +00:00
Tarek Ziadé 1a240fb9f0 fixed #4394 make the storage of the password optional in .pypirc 2009-01-08 23:56:31 +00:00
Hirokazu Yamamoto fde5b803d8 Issue #4864: test_msvc9compiler failed on VC6/7.
Reviewed by Amaury Forgeot d'Arc.
2009-01-07 09:42:28 +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é b1a85413b1 Fixed #4702: Throwing DistutilsPlatformError instead of IOError under win32 if MSVC is not found 2008-12-30 23:03:41 +00:00
Tarek Ziadé c13acb18bc fixed #4646 : distutils was choking on empty options arg in the setup function. 2008-12-29 22:23:53 +00:00
Ronald Oussoren 88a3083c28 Update the fix for issue4064 to deal correctly with all three variants of
universal builds that are presented by the configure script.
2008-12-28 19:50:40 +00:00
Ronald Oussoren 4b48c612bb Issue4064: architecture string for universal builds on OSX 2008-12-28 19:40:56 +00:00
Tarek Ziadé e4c75bb585 fixed #4400 : distutils .pypirc default generated file was broken. 2008-12-24 19:10:05 +00:00
Amaury Forgeot d'Arc 240028cb77 #1030250: correctly pass the dry_run option to the mkpath() function. 2008-12-11 00:03:42 +00:00
Christian Heimes aa67471227 Fixed issue ##3741: DISTUTILS_USE_SDK set causes msvc9compiler.py to raise an exception 2008-11-28 11:02:32 +00:00
Barry Warsaw afa1436958 Bumping to 2.6 final. 2008-10-01 21:46:40 +00:00
Hirokazu Yamamoto 1672e10dc2 Issue #3925: Ignores shutil.rmtree error on cygwin too.
Reviewed by Benjamin Peterson.
2008-09-21 20:48:41 +00:00
Barry Warsaw 6af16190f6 Bumping to 2.6rc2 2008-09-18 04:33:43 +00:00
Mark Hammond 900155fa42 avoid putting unicode objects in the environment causing
later test failures.  As discussed on #python-dev
2008-09-18 03:51:46 +00:00
Barry Warsaw 1e62aec3ed Bumping to 2.6rc1 2008-09-12 23:25:57 +00:00
Marc-André Lemburg b339b2aa6f Issue #2562: Fix distutils PKG-INFO writing logic to allow having
non-ascii characters and Unicode in setup.py meta-data.
2008-09-03 11:13:56 +00:00
Amaury Forgeot d'Arc 293924bf31 Issue 2975: when compiling multiple extension modules with visual studio 2008
from the same python instance, some environment variables (LIB, INCLUDE)
would grow without limit.

Tested with these statements:
    distutils.ccompiler.new_compiler().initialize()
    print os.environ['LIB']
But I don't know how to turn them into reliable unit tests.
2008-09-02 23:19:56 +00:00
Barry Warsaw 07a4a3851d Bump to 2.6b3. 2008-08-21 01:15:08 +00:00
Amaury Forgeot d'Arc 351ffb80c3 #2234 distutils failed with mingw binutils 2.18.50.20080109.
Be less strict when parsing these version numbers,
they don't necessarily follow the python numbering scheme.
2008-08-18 19:23:47 +00:00
Marc-André Lemburg 4763f7184e Restore Python 2.3 compatibility and remove "with" usage. 2008-08-18 11:13:45 +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
Barry Warsaw daddf03f77 Bumping to 2.6b2 2008-07-18 03:20:07 +00:00
Jesse Noller a6c5dc07f4 Apply patch for issue 3090: ARCHFLAGS parsing incorrect 2008-07-16 13:24:06 +00:00
Barry Warsaw b5d174037f Bumping to 2.6b1 2008-06-19 01:48:07 +00:00
Ronald Oussoren 5640ce2f1e MacOS X: Enable 4-way universal builds
This patch adds a new configure argument on OSX:
        --with-universal-archs=[32-bit|64-bit|all]

When used with the --enable-universalsdk option this controls which
CPU architectures are includes in the framework. The default is 32-bit,
meaning i386 and ppc. The most useful alternative is 'all', which includes
all 4 CPU architectures supported by MacOS X (i386, ppc, x86_64 and ppc64).

This includes limited support for the Carbon bindings in 64-bit mode as well,
limited because (a) I haven't done extensive testing and (b) a large portion
of the Carbon API's aren't available in 64-bit mode anyway.

I've also duplicated a feature of Apple's build of python: setting the
environment variable 'ARCHFLAGS' controls the '-arch' flags used for building
extensions using distutils.
2008-06-05 12:58:24 +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
Thomas Heller b4701e638c On Windows, we must build a debug version iff running a debug build of
Python
2008-05-26 11:42:40 +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
Martin v. Löwis 68faf5b0fc Use announce instead of print, to suppress output in
the testsuite.
2008-05-24 09:00:04 +00:00
Georg Brandl 88e2acf038 GHOP #257: test distutils' build_ext command, written by Josip Dzolonga. 2008-05-18 11:52:36 +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 3b46fcfb38 Revert r63323: Use lowercase version of module name.
The distutils module should continue to use the old ConfigParser name,
for backward-compatibility.
2008-05-15 20:30:56 +00:00
Andrew M. Kuchling a5c3878b32 Import class from distutils.cmd, not .core, to avoid circular import 2008-05-15 20:07:39 +00:00
Andrew M. Kuchling e00aeccf2e Use lowercase version of module name 2008-05-15 20:06:51 +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 5128fb9715 Try setting HOME env.var to fix test on Win32 2008-05-11 20:08:33 +00:00
Andrew M. Kuchling ca3ccd15ff Add message to test assertion 2008-05-11 19:15:52 +00:00
Andrew M. Kuchling aac5c8669f #1858: re-apply patch for this, adding the missing files 2008-05-11 14:00:00 +00:00