summaryrefslogtreecommitdiff
path: root/distutils2/tests/test_command_build_ext.py
Commit message (Collapse)AuthorAgeFilesLines
* Fix for shared builds?ric Araujo2012-02-151-1/+2
|
* Fix parsing of build_ext --libraries option (#1326113)?ric Araujo2012-02-151-6/+6
|
* Use sys.version_info instead of sys.version.?ric Araujo2012-02-091-3/+3
| | | | | | | | | | | | | The contents of this attribute are an implementation detail, as documented for #9442, so we should not parse it, to support non-CPython VMs in the future. Unfortunately, one use comes directly from PEP 345, so an edit will have to be agreed before fixing the code (see comment in d2.markers). Other remaining uses are found in d2.compiler and could be replaced by the platform module (which also parses sys.version, but then it wouldn?t be my fault :)
* Clean up mocking of stdout and stdin in tests.?ric Araujo2011-11-121-25/+8
| | | | In addition, update the create module to use logging.
* Refactor support code for compiling xxmodule.c.?ric Araujo2011-09-191-60/+12
| | | | | | | | | | | | | | | | This file is needed in other tests, so it?s better to have the support code in tests.support. It?s also simpler to just have a skip instead of custom print/return/test suite fiddling. Unfortunately, the xxmodule.c file (resurrected from the repo, and also identical to the version in Python 2.7) cannot be compiled by Python 2.4 and 2.5 on my computer, so the test is skipped. The code to fix up build_ext for Unix shared builds and Windows debug builds was also moved to support for future reuse. Finally, I fixed code using sysconfig._CONFIG_VARS directly so that it calls get_config_var first, so that _CONFIG_VARS is a dict instead of None.
* Fix backport changesets part 2: tests?ric Araujo2011-09-181-18/+9
|
* Fix the backport fixes.?ric Araujo2011-09-181-4/+5
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Backports: - sysconfig is now always imported from our backports - when hashlib is not found, our backport is used instead of the md5 module (debatable; we could just drop hashlib) Version-dependent features: - PEP 370 features are only enabled for 2.6+ - the check for sys.dont_write_bytecode was fixed to use getattr with a default value instead of hasattr Idioms/syntax: - octal literals lost their extra 0 - misused try/except blocks have been changed back to try/finally (it?s legal in 2.4 too, it?s only try/except/finally that isn?t) - exception catching uses the regular 2.x idiom instead of sys.exc_info - file objects are closed within finally blocks (this causes much whitespace changes but actually makes diff with packaging easier) Renamed modules: - some missed renamings (_thread, Queue, isAlive, urllib.urlsplit, etc.) were fixed Other: - a few false positive replacements of ?packaging? by ?distutils2? in comments or docstrings were reverted - util.is_packaging regained its name - assorted whitespace/comment/import changes to match packaging
* Branch merge, reverting some of Alexis? changes.?ric Araujo2011-09-131-2/+2
|\ | | | | | | | | | | | | The print statement fixes that were in my branch override the print(u'') calls added by Alexis; the import at function scope were removed for the usual reasons; d2._backport.hashlib is used if hashlib is not available instead of md5.
| * Convert print function calls back to print statements.?ric Araujo2011-09-121-2/+2
| | | | | | | | | | | | This caused pysetup to print out tuples. When multi-line strings are enclosed in parens for line-wrapping purposes, which would not print out a tuple, I have added a space for clarity anyway.
* | Fixes to actually use the backports.Jeremy Kloth2011-09-121-1/+1
|/
* Fixed a python2.4 syntax errors.Alexandru Plugaru2011-08-301-8/+15
|
* Backported packaging from cpython default, overwriting previous version.Vinay Sajip2011-08-181-80/+188
|
* simplified the package_dir option - just one root dir allowedTarek Ziade2011-01-291-3/+3
|
* Forgot one instance of wrong import in 088dbb97fd18, oops!?ric Araujo2010-11-161-4/+1
|
* moved extension into compiler/Tarek Ziade2010-11-131-6/+2
|
* removed core.pyTarek Ziade2010-10-251-1/+2
|
* Rename command's tests filenames to test_command_*, and install_tools.py to ↵Alexis Metaireau2010-10-041-0/+366
install.py The goal is to avoid overlaps between commands and scripts names (for instance the "install" script and the "install" command)