Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | bpo-29708: Setting SOURCE_DATE_EPOCH forces hash-based .pyc files (GH-5200) | Bernhard M. Wiedemann | 2018-01-24 | 1 | -0/+12 |
| | | | To support reproducible builds, the setting of of SOURCE_DATE_EPOCH triggers the py_compile module -- and by extension, compileall -- to forcibly compile with hash-based .pyc files. This eliminates the possibility of timestamp-based .pyc files which vary between builds. | ||||
* | closes bpo-31650: PEP 552 (Deterministic pycs) implementation (#4575) | Benjamin Peterson | 2017-12-09 | 1 | -0/+18 |
| | | | | | | | | | | | | | | | | | | | | | | | | | Python now supports checking bytecode cache up-to-dateness with a hash of the source contents rather than volatile source metadata. See the PEP for details. While a fairly straightforward idea, quite a lot of code had to be modified due to the pervasiveness of pyc implementation details in the codebase. Changes in this commit include: - The core changes to importlib to understand how to read, validate, and regenerate hash-based pycs. - Support for generating hash-based pycs in py_compile and compileall. - Modifications to our siphash implementation to support passing a custom key. We then expose it to importlib through _imp. - Updates to all places in the interpreter, standard library, and tests that manually generate or parse pyc files to grok the new format. - Support in the interpreter command line code for long options like --check-hash-based-pycs. - Tests and documentation for all of the above. | ||||
* | Use support.change_cwd() in tests. | Serhiy Storchaka | 2015-09-06 | 1 | -5/+3 |
|\ | |||||
| * | Use support.change_cwd() in tests. | Serhiy Storchaka | 2015-09-06 | 1 | -5/+3 |
| | | |||||
* | | Issue #23822: Fix test_py_compile to not fail under -O. | Brett Cannon | 2015-04-13 | 1 | -0/+1 |
| | | |||||
* | | Issue #23731: Implement PEP 488. | Brett Cannon | 2015-04-13 | 1 | -0/+4 |
|/ | | | | | | The concept of .pyo files no longer exists. Now .pyc files have an optional `opt-` tag which specifies if any extra optimizations beyond the peepholer were applied. | ||||
* | Fix the test to use an os.sep agnostic test. Hopefully this will fix the | Barry Warsaw | 2014-12-02 | 1 | -2/+6 |
| | | | | Windows buildbots. Found by Jeremy Kloth. | ||||
* | Make this change a little more robust for up-merging. | Barry Warsaw | 2014-12-01 | 1 | -1/+2 |
| | |||||
* | - Issue #22966: Fix __pycache__ pyc file name clobber when pyc_compile is | Barry Warsaw | 2014-12-01 | 1 | -0/+16 |
| | | | | | asked to compile a source file containing multiple dots in the source file name. | ||||
* | Remove unused imports. | Berker Peksag | 2014-09-01 | 1 | -2/+2 |
| | |||||
* | Issue #19447: Suppress output of py_compile.compile(). | Berker Peksag | 2014-09-01 | 1 | -1/+2 |
| | |||||
* | Issue #19447: Use importlib.util.cache_from_source() instead of ``bad_coding ↵ | Berker Peksag | 2014-08-22 | 1 | -1/+2 |
| | | | | | | + 'c'``. Thanks to Arfrever Frehtes Taifersar Arahesis. | ||||
* | Issue #19447: Add a test case to py_compile.compile() to make sure | Berker Peksag | 2014-08-22 | 1 | -0/+4 |
| | | | | | | it don't raise an exception if doraise is False. Patch by Bohuslav "Slavek" Kabrda. | ||||
* | Issue 19384: Fix test_py_compile for root user, patch by Claudiu Popa. | Christian Heimes | 2013-10-25 | 1 | -0/+3 |
| | |||||
* | Issue #17177: Stop using imp with py_compile | Brett Cannon | 2013-06-15 | 1 | -2/+2 |
| | |||||
* | make test more robust under Windows | Brett Cannon | 2013-06-15 | 1 | -1/+1 |
| | |||||
* | Issue #17222: Raise FileExistsError when py_compile.compile would | Brett Cannon | 2013-06-14 | 1 | -0/+20 |
| | | | | overwrite a symlink or non-regular file with a regular file. | ||||
* | Issue #17244: Windows doesn't let you set permissions on directories. | Brett Cannon | 2013-04-24 | 1 | -0/+2 |
| | |||||
* | add a newline | Brett Cannon | 2013-04-14 | 1 | -1/+1 |
| | |||||
* | Issue #17244: Don't mask exceptions raised during the creation of | Brett Cannon | 2013-04-14 | 1 | -3/+14 |
| | | | | | | bytecode files in py_compile. Thanks to Arfrever Frehtes Taifersar Arahesis for the bug report. | ||||
* | Issue #12618: py_compile cannot create files in current directory | Meador Inge | 2011-11-28 | 1 | -0/+9 |
| | | | | Initial patch by Sjoerd de Vries. | ||||
* | Issue #12618: fix py_compile unit tests to handle different drives on Windows | Meador Inge | 2011-11-26 | 1 | -0/+10 |
| | |||||
* | Issue #12618: create unit tests for the py_compile module | Meador Inge | 2011-11-26 | 1 | -0/+42 |