diff options
author | Mathieu Bridon <bochecha@daitauha.fr> | 2017-09-26 19:39:41 +0200 |
---|---|---|
committer | Mathieu Bridon <bochecha@daitauha.fr> | 2017-09-29 13:30:05 +0200 |
commit | 4a29f7eb2c53cd3d06038d3cbb44d1ce835de647 (patch) | |
tree | bb3375debca7fd2da0af6b23ae4a2767483e697e /setup.py | |
parent | e8beece45b7de0ee0de4db2254a4e40b44bc8b58 (diff) | |
download | buildstream-4a29f7eb2c53cd3d06038d3cbb44d1ce835de647.tar.gz |
Fix timestamps in Python bytecodefix-pyc-timestamps
When building Python modules, a bytecode `.pyc` file is generated from
the source `.py` file.
The former contains 4 bytes representing the timestamp of the latter at
the time it was generated.
Unfortunately, after building OSTree sets all the file timestamps to 0,
which introduces a discrepency between the timestamp of the `.py` file
and the 4 bytes stored inside the `.pyc` file.
As a result, when running a Python module from a checkout, Python thinks
the bytecode files are stale, which causes a dramatic performance
penalty when starting an application.
Fixes #94
Diffstat (limited to 'setup.py')
0 files changed, 0 insertions, 0 deletions