def add_args(self, parser: configargparse.ArgumentParser) -> None:
gr_pip = parser.add_argument_group("PIP Assembler options")
gr_pip.add_argument("--pip-opts", dest="pip_opts", action="append", default=[], env_var="PIP_OPTS",
help="Any string specified here will be directly appended to all pip command-lines when it "
"is invoked, allowing you to specify arbitrary extra command-line parameters, like "
"--extra-index. Make sure that you use an equals sign, i.e. --pip-opts='' to avoid "
"'Unknown parameter' errors! http://bugs.python.org/issue9334")
gr_pip.add_argument("--upgrade-pip", dest="upgrade_pip", action="store_true", default=False,
help="If specified, GoPythonGo will update pip and virtualenv inside the build environment "
"to the newest available version before installing packages")
gr_setuppy = parser.add_argument_group("Setup.py Assembler options")
gr_setuppy.add_argument("--setuppy-install", dest="setuppy_install", action="append", default=[],
help="After all pip commands have run, this can run 'python setup.py install' on " +
"additional packages available in any filesystem path. This option can be " +
"used multiple times")
gr_python = parser.add_argument_group("Python ecosystem options")
gr_python.add_argument("--use-virtualenv", dest="virtualenv_binary", default="/usr/bin/virtualenv",
env_var="VIRTUALENV_EXECUTABLE",
help="Set an alternative virtualenv binary to use inside the builder container")
gr_python.add_argument("--python-binary", dest="python_binary", default="python3",
help="Force virtualenv to use a certain Python version (Default: 'python3'). This will "
"be passed to virtualenv's -p parameter. You must change this if you want to build "
"and ship Python 2.x virtual environments.")
评论列表
文章目录