summaryrefslogtreecommitdiffstats
path: root/Lib/packaging/tests/test_command_build_py.py
Commit message (Collapse)AuthorAgeFilesLines
* Remove packaging from the standard library.Éric Araujo2012-06-241-146/+0
| | | | | | Distutils2 will live on on PyPI and be included in the stdlib when it is ready. See discussion starting at http://mail.python.org/pipermail/python-dev/2012-June/120430.html
* Improve one packaging test, remove a setuptoolism in anotherÉric Araujo2012-02-041-4/+14
|
* Clean up mocking of stdout and stdin in packaging tests.Éric Araujo2011-11-061-18/+8
| | | | | | | | Running with regrtest does not show spurious output or unrestored sys.std* objects; sometimes running with make test is different, I’ll watch the buildbots. In addition, update the create module to use logging.
* Improve byte-compilation in packaging to be independent of -O or -B.Éric Araujo2011-11-031-22/+8
| | | | | | | | | | | | | | | | | | | | | The code I fixed to comply with PEP 3147 still had one bug: When run under python -O, some paths for pyc files would be pyo, because I called imp.cache_from_source without explicit debug_override argument in some places, and under -O that would return .pyo (this is well explained in the imp docs). Now all code (util.byte_compile, build_py, install_lib) can create .pyo files according to options given by users, without interference from the calling Python’s own optimize mode. On a related topic, I also removed the code that prevented byte compilation under python -B. The rationale is that packaging gives control over the creation of pyc files to the user with its own explicit option, and the behavior should not be changed if the calling Python happens to run with -B for whatever reason. I will argue that this is a bug fix and ask to be allowed to backport this change to distutils. Finally, I moved one nugget of information about the --compile and --optimize options from the source into the doc. It clears up a misunderstanding that I (and maybe other people) had.
* More fixes for PEP 3147 compliance in packaging (#11254)Éric Araujo2011-10-191-0/+35
|
* Fix packaging byte-compilation to comply with PEP 3147 (#11254).Éric Araujo2011-10-081-3/+6
| | | | | | | | | | I want to replace custom byte-compiling function with calls to compileall before 3.3b1, but in the short term it’s good to have this fixed. Adapted from the distutils patch by Jeff Ramnani. I tested with -B, -O and -OO; test_util and test_mixin2to3 fail in -O mode because lib2to3 doesn’t support it.
* Packaging cleanup: remove conditionals for < 2.6 support.Éric Araujo2011-09-171-2/+0
| | | | | | | | PEP 370 features and sys.dont_write_bytecode are always available in 3.3; the distutils2 backport still has the conditionals. I also renamed an internal misnamed method and fixed a few things (“packaging2” name, stray print, unused import, fd leak).
* Packaging cleanup: remove use of script_name where obsoleteÉric Araujo2011-06-081-4/+0
|
* Merge touch-ups and fixes for #9831 (+port fix to packaging) and #9223 from 3.2Éric Araujo2011-05-281-3/+6
|
* Issue #12120, Issue #12119: tests were missing a sys.dont_write_bytecode checkTarek Ziade2011-05-191-1/+2
|
* package: replace open(fn, 'w').close() by open(fn, 'wb').close()Victor Stinner2011-05-191-2/+2
| | | | | We don't need to open the files in text mode just to create them (or update their modification time).
* initial import of the packaging package in the standard libraryTarek Ziade2011-05-191-0/+124