diff options
author | Maximilian Hils <git@maximilianhils.com> | 2015-11-29 22:11:14 +0100 |
---|---|---|
committer | Maximilian Hils <git@maximilianhils.com> | 2015-11-29 22:11:14 +0100 |
commit | a0a7be9ab1c46e94f22b2d2b608769fc11ca0270 (patch) | |
tree | eed4d323b7aadd71014e88dc881a5c42c0ddd7df /rtool.py | |
parent | d3570747e8ef4ba4068edd89501504df4ce3281c (diff) | |
download | mitmproxy-a0a7be9ab1c46e94f22b2d2b608769fc11ca0270.tar.gz mitmproxy-a0a7be9ab1c46e94f22b2d2b608769fc11ca0270.tar.bz2 mitmproxy-a0a7be9ab1c46e94f22b2d2b608769fc11ca0270.zip |
make pyinstaller version configurable
Diffstat (limited to 'rtool.py')
-rw-r--r-- | rtool.py | 8 |
1 files changed, 5 insertions, 3 deletions
@@ -208,9 +208,10 @@ def sdist(): @cli.command("bdist") -@click.option('--use-existing-sdist/--no-use-existing-sdist', default=False) +@click.option("--use-existing-sdist/--no-use-existing-sdist", default=False) +@click.argument("pyinstaller_version", envvar="PYINSTALLER_VERSION", default="PyInstaller~=3.0.0") @click.pass_context -def bdist(ctx, use_existing_sdist): +def bdist(ctx, use_existing_sdist, pyinstaller_version): """ Build a binary distribution """ @@ -223,7 +224,7 @@ def bdist(ctx, use_existing_sdist): ctx.invoke(sdist) print("Installing PyInstaller...") - subprocess.check_call([VENV_PIP, "install", "-q", "PyInstaller~=3.0.0"]) + subprocess.check_call([VENV_PIP, "install", "-q", pyinstaller_version]) for p, conf in projects.items(): if conf["tools"]: @@ -261,6 +262,7 @@ def bdist(ctx, use_existing_sdist): subprocess.check_call([executable, "--version"]) archive.add(executable, os.path.basename(executable)) + print("Packed {}.".format(archive_name)) @cli.command("upload") |