build_release: Different PyInstaller workaround
This commit is contained in:
parent
71b5d83e19
commit
47bf261994
@ -163,14 +163,6 @@ def patch_windows(out_dir):
|
|||||||
shutil.copy(os.path.join(dll_dir, dll), out_dir)
|
shutil.copy(os.path.join(dll_dir, dll), out_dir)
|
||||||
|
|
||||||
|
|
||||||
def remove_tox_pyinstaller_src():
|
|
||||||
"""Remove leftover pieces of .tox.
|
|
||||||
|
|
||||||
WORKAROUND for https://github.com/tox-dev/tox/issues/503
|
|
||||||
"""
|
|
||||||
shutil.rmtree(os.path.join('.tox', 'pyinstaller', 'src', 'pyinstaller'))
|
|
||||||
|
|
||||||
|
|
||||||
def build_windows():
|
def build_windows():
|
||||||
"""Build windows executables/setups."""
|
"""Build windows executables/setups."""
|
||||||
utils.print_title("Updating 3rdparty content")
|
utils.print_title("Updating 3rdparty content")
|
||||||
@ -190,13 +182,11 @@ def build_windows():
|
|||||||
artifacts = []
|
artifacts = []
|
||||||
|
|
||||||
utils.print_title("Running pyinstaller 32bit")
|
utils.print_title("Running pyinstaller 32bit")
|
||||||
remove_tox_pyinstaller_src()
|
|
||||||
call_tox('pyinstaller', '-r', python=python_x86)
|
call_tox('pyinstaller', '-r', python=python_x86)
|
||||||
shutil.move(out_pyinstaller, out_32)
|
shutil.move(out_pyinstaller, out_32)
|
||||||
patch_windows(out_32)
|
patch_windows(out_32)
|
||||||
|
|
||||||
utils.print_title("Running pyinstaller 64bit")
|
utils.print_title("Running pyinstaller 64bit")
|
||||||
remove_tox_pyinstaller_src()
|
|
||||||
call_tox('pyinstaller', '-r', python=python_x64)
|
call_tox('pyinstaller', '-r', python=python_x64)
|
||||||
shutil.move(out_pyinstaller, out_64)
|
shutil.move(out_pyinstaller, out_64)
|
||||||
patch_windows(out_64)
|
patch_windows(out_64)
|
||||||
|
2
tox.ini
2
tox.ini
@ -264,6 +264,8 @@ commands =
|
|||||||
{envpython} scripts/dev/freeze.py {posargs}
|
{envpython} scripts/dev/freeze.py {posargs}
|
||||||
|
|
||||||
[testenv:pyinstaller]
|
[testenv:pyinstaller]
|
||||||
|
# WORKAROUND for https://github.com/tox-dev/tox/issues/503
|
||||||
|
install_command = pip install --exists-action w {opts} {packages}
|
||||||
basepython = {env:PYTHON:python3}
|
basepython = {env:PYTHON:python3}
|
||||||
deps =
|
deps =
|
||||||
-r{toxinidir}/requirements.txt
|
-r{toxinidir}/requirements.txt
|
||||||
|
Loading…
Reference in New Issue
Block a user