diff options
author | Christian Tismer <tismer@stackless.com> | 2019-03-25 11:29:45 +0100 |
---|---|---|
committer | Christian Tismer <tismer@stackless.com> | 2019-03-25 12:49:56 +0000 |
commit | 24eaef7c220766d36eda84b073ba78af8e82673e (patch) | |
tree | 1024e417baea121818b61f9af86778022d3f5a93 /build_scripts/options.py | |
parent | 7539ef50f0755f89e9307d036cf4cc63bbf79e3a (diff) |
Add contextlib to Preloaded Modules for Embedding with Python 2
While developing the embedding for installer support, some functionality
was moved from loader.py to signature_bootstrap.py, especially a "with"
statement, that needed a contextlib import.
When using PyInstaller or cxFreeze, this gave a problem when running
in virtualenv and Python 2. We extended the pre-loading to contextlib.
It is not completely clear why Python 2 needs that and Python 3 doesn't.
The problem did not show up without virtualenv. Perhaps some different
installed packages have hidden that problem, because they loaded the
contextlib, themselves. This does not happen with a freshly installed
virtual environment.
Change-Id: I2188cb67129e596f6492d0f5dc9b303a67bfe870
Reviewed-by: Friedemann Kleint <Friedemann.Kleint@qt.io>
Reviewed-by: Alexandru Croitor <alexandru.croitor@qt.io>
Diffstat (limited to 'build_scripts/options.py')
0 files changed, 0 insertions, 0 deletions