summaryrefslogtreecommitdiffstats
path: root/Lib/distutils
Commit message (Collapse)AuthorAgeFilesLines
* Merge distutils bug fix from 3.2Éric Araujo2011-08-233-23/+30
|\
| * Fix distutils tests on Windows (#12678).Éric Araujo2011-08-233-23/+30
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | - First, support.fixup_build_ext (already used to set proper library_dirs value under Unix shared builds) gains the ability to correctly set the debug attribute under Windows debug builds. - Second, the filename for the extension module gets a _d suffix under debug builds. - Third, the test code properly puts our customized build_ext object into an internal dictionary to make sure that the install command will later use our object instead of re-creating one. That’s the downside of using low-level APIs in our test code: we have to manually push knobs and turn handles that would otherwise be handled behind the scenes. Thanks to Nadeem for the testing.
| * Issue #12678: Fix distutils sdist test on Windows.Nadeem Vawda2011-08-211-0/+1
| | | | | | | | Patch by Jeremy Kloth.
* | Merge build_ext fix from 3.2Éric Araujo2011-08-213-25/+34
|\ \ | |/
| * Fix distutils test_install for shared CPython buildsÉric Araujo2011-08-211-0/+1
| |
| * Factor out the build_ext fixup for shared Python builds.Éric Araujo2011-08-212-25/+33
| | | | | | | | I need this to fix the failing test_install.
* | Merge 3.2Éric Araujo2011-08-211-1/+1
|\ \ | |/
| * Add missing closing paren in docstring (thanks Ezio)Éric Araujo2011-08-211-1/+1
| |
* | Issue #12326: refactor usage of sys.platformVictor Stinner2011-08-201-2/+1
| | | | | | | | | | | | | | | | * Use str.startswith(tuple): I didn't know this Python feature, Python rocks! * Replace sometimes sys.platform.startswith('linux') with sys.platform == 'linux' * sys.platform doesn't contain the major version on Cygwin on Mac OS X (it's just 'cygwin' and 'darwin')
* | Merge 3.2Éric Araujo2011-08-201-3/+3
|\ \ | |/
| * Dedent example in docstringÉric Araujo2011-08-201-3/+3
| |
* | Fix sdist test on Windows (#12678). Patch by Jeremy Kloth.Éric Araujo2011-08-201-0/+1
| |
* | Merge 3.2Éric Araujo2011-08-203-33/+90
|\ \ | |/
| * Add a test for extension modules in the distutils record file.Éric Araujo2011-08-201-0/+33
| | | | | | | | | | | | | | I made a note a month ago that install --record wrote incorrect entries for extension modules (I think the problem was that the first character of the file was stripped), so I’m now adding a test to try to reproduce that in the current versions.
| * Rework test_record a bit to make the test more exactÉric Araujo2011-08-201-10/+12
| |
| * Refactor the copying of xxmodule.c in distutils tests (#12141).Éric Araujo2011-08-202-24/+46
| | | | | | | | | | | | | | | | | | I need to copy this file in another test too, so I moved the support code to distutils.tests.support and improved it: - don’t skip when run from the Lib/distutils/tests directory - use proper skip machinery instead of custom print/return/test suite fiddling.
* | Issue #12326: don't test the major version of sys.platformVictor Stinner2011-08-171-2/+2
| | | | | | | | | | Use startswith, instead of ==, when testing sys.platform to support new platforms like Linux 3 or OpenBSD 5.
* | Revert cosmetic change.Éric Araujo2011-08-101-3/+3
| | | | | | | | | | | | A reminder: distutils only gets bug fixes. Cosmetic changes, especially in tests, are not worth the time spent, and can even make future merges of bugfixes a bit less easy.
* | Merge fixes for #9860, #11104/#8688 and #12331 from 3.2Éric Araujo2011-07-312-25/+62
|\ \ | |/
| * Fix regression with distutils MANIFEST handing (#11104, #8688).Éric Araujo2011-07-312-25/+62
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The changed behavior of sdist in 3.1 broke packaging for projects that wanted to use a manually-maintained MANIFEST file (instead of having a MANIFEST.in template and letting distutils generate the MANIFEST). The fixes that were committed for #8688 (76643c286b9f by Tarek and d54da9248ed9 by me) did not fix all issues exposed in the bug report, and also added one problem: the MANIFEST file format gained comments, but the read_manifest method was not updated to handle (i.e. ignore) them. This changeset should fix everything; the tests have been expanded and I successfully tested the 2.7 version with Mercurial, which suffered from this regression. I have grouped the versionchanged directives for these bugs in one place and added micro version numbers to help users know the quirks of the exact version they’re using. Initial report, thorough diagnosis and patch by John Dennis, further work on the patch by Stephen Thorne, and a few edits and additions by me.
* | merge from 3.2 - Fix closes Issue11439 Remove the SVN keywords from the code ↵Senthil Kumaran2011-07-2845-90/+0
|\ \ | |/ | | | | as it is no longer applicable in hg. Patch Contributed by Neil Muller.
| * Fix closes Issue11439 Remove the SVN keywords from the code as it is no ↵Senthil Kumaran2011-07-2845-90/+0
| | | | | | | | longer applicable in hg. Patch Contributed by Neil Muller.
| * Bump version to 3.2.1.v3.2.1Georg Brandl2011-07-091-1/+1
| |
| * Bump to 3.2.1rc2.Georg Brandl2011-07-031-1/+1
| |
* | Issue #12451: Add support.create_empty_file()Victor Stinner2011-06-301-3/+3
| | | | | | | | | | | | | | We don't need to create a temporary buffered binary or text file object just to create an empty file. Replace also os.fdopen(handle).close() by os.close(handle).
* | (merge 3.2) Issue #12451: distutils now opens the setup script in binary modeVictor Stinner2011-06-301-5/+3
|\ \ | |/ | | | | to read the encoding cookie, instead of opening it in UTF-8.
| * Issue #12451: distutils now opens the setup script in binary mode to read theVictor Stinner2011-06-301-5/+3
| | | | | | | | encoding cookie, instead of opening it in UTF-8.
* | Issue #9516: Merge Distutils changes from 3.2Ned Deily2011-06-293-26/+65
|\ \ | |/
| * Issue #9516: Change distutils to no longer globally attempt to check andNed Deily2011-06-292-16/+28
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | set the MACOSX_DEPLOYMENT_TARGET env variable for the interpreter process on OS X. This could cause failures in non-distutils subprocesses and was unreliable since tests or user programs could modify the interpreter environment after distutils set it. Instead, have distutils set the the deployment target only in the environment of each build subprocess. Continue to use the previous algorithm for deriving the deployment target value: if MACOSX_DEPLOYMENT_TARGET is not set in the interpreter's env: use the interpreter build configure MACOSX_DEPLOYMENT_TARGET elif the MACOSX_DEPLOYMENT_TARGET env value >= configure value: use the env MACOSX_DEPLOYMENT_TARGET else: # env value less than interpreter build configure value raise exception This allows building extensions that can only run on newer versions of the OS than the version python was built for, for example with a python built for 10.3 or later and an extension that needs to be built for 10.5.
| * Issue #9516: Correct and expand OS X deployment target tests in distutilsNed Deily2011-06-291-10/+37
| | | | | | | | test_build_ext.
* | Issue #12141: Install copies of template C module file so thatNed Deily2011-06-281-0/+5
|\ \ | |/ | | | | | | | | test_build_ext of test_distutils and test_command_build_ext of test_packaging are no longer silently skipped when run outside of a build directory.
| * Issue #12141: Install a copy of template C module file so thatNed Deily2011-06-281-1/+10
| | | | | | | | | | test_build_ext of test_distutils is no longer silently skipped when run outside of a build directory.
* | Merge ABC and distutils touch-ups from 3.2.Éric Araujo2011-06-042-0/+0
|\ \ | |/ | | | | | | | | | | | | I have removed the reST target I added in 38cdca2cc253: it is not necessary, as people can link to the glossary entry or the abc module without it. Two indentation fixes from 3.2 collections.rst have been ported to 3.3 collections.abc.rst.
| * Remove unneeded executable bit on two distutils filesÉric Araujo2011-06-042-0/+0
| |
* | Merge touch-ups and fixes for #9831 (+port fix to packaging) and #9223 from 3.2Éric Araujo2011-05-281-7/+10
|\ \ | |/
| * Merge doc touch-ups and fixes for #9831 and #9223 from 3.1Éric Araujo2011-05-281-6/+10
| |\
| | * Fix test_build_py when sys.dont_write_bytecode is true (#9831).Éric Araujo2011-05-281-6/+10
| | | | | | | | | | | | | | | | | | | | | | | | The tests now pass all combinations of -O/-OO and -B. See also #7071 and #6292 for previous variations on the same theme. test_versionpredicate needs a skip when sys.flags.optimize is true, but I don’t know how to make that work with a DocTestSuite.
| | * Issue #10419: Fix build_scripts command of distutils to handle correctlyVictor Stinner2011-05-101-11/+36
| | | | | | | | | | | | | | | non-ASCII scripts. Open and write the script in binary mode, but ensure that the shebang is decodable from UTF-8 and from the encoding of the script.
| * | Bump to 3.2.1rc1.v3.2.1rc1Georg Brandl2011-05-151-1/+1
| | |
* | | Issue 12132 - skip the test_buil_ext test if the xx module is not foundTarek Ziade2011-05-221-1/+5
| | |
* | | Issue #12120, Issue #12119: tests were missing a sys.dont_write_bytecode checkTarek Ziade2011-05-191-1/+2
| | |
* | | Issue #10419, issue #6011: port 6ad356525381 fix from distutils to packagingVictor Stinner2011-05-191-4/+3
| | | | | | | | | | | | | | | | | | build_scripts command of packaging now handles correctly non-ASCII path (path to the Python executable). Open and write the script in binary mode, but ensure that the shebang is decodable from UTF-8 and from the encoding of the script.
* | | (merge from 3.2) Issue #9516: avoid errors in sysconfig when ↵Ronald Oussoren2011-05-154-6/+71
|\ \ \ | |/ / | | | | | | | | | | | | | | | | | | | | | MACOSX_DEPLOYMENT_TARGET is set in shell. Without this patch python will fail to start properly when the environment variable MACOSX_DEPLOYMENT_TARGET is set on MacOSX and has a value that is not compatible with the value during Python's build. This is caused by code in sysconfig that was only meant to be used in disutils.
| * | Issue #9516: avoid errors in sysconfig when MACOSX_DEPLOYMENT_TARGET is set ↵Ronald Oussoren2011-05-154-6/+71
| | | | | | | | | | | | | | | | | | | | | | | | | | | in shell. Without this patch python will fail to start properly when the environment variable MACOSX_DEPLOYMENT_TARGET is set on MacOSX and has a value that is not compatible with the value during Python's build. This is caused by code in sysconfig that was only meant to be used in disutils.
| * | Merge in changes from 3.2.1b1 release repo.Georg Brandl2011-05-131-1/+1
| |\ \
| | * | Bump to 3.2.1b1.Georg Brandl2011-05-081-1/+1
| | | |
| * | | Close #10419, issue #6011: build_scripts command of distutils handles correctlyVictor Stinner2011-05-101-11/+34
| |/ / | | | | | | | | | | | | | | | non-ASCII path (path to the Python executable). Open and write the script in binary mode, but ensure that the shebang is decodable from UTF-8 and from the encoding of the script.
* | | Close #10419, issue #6011: build_scripts command of distutils handles correctlyVictor Stinner2011-05-101-11/+34
| | | | | | | | | | | | | | | | | | non-ASCII path (path to the Python executable). Open and write the script in binary mode, but ensure that the shebang is decodable from UTF-8 and from the encoding of the script.
* | | Merge 3.2Éric Araujo2011-04-202-14/+17
|\ \ \ | |/ /
| * | Merge 3.1Éric Araujo2011-04-202-14/+17
| |\ \ | | |/