def add_args(self, parser: configargparse.ArgumentParser) -> None:
gr_pbuilder = parser.add_argument_group("Pbuilder Builder options")
gr_pbuilder.add_argument("--use-pbuilder", dest="pbuilder_executable", default="/usr/sbin/pbuilder",
env_var="PBUILDER_EXECUTABLE",
help="Specify an alternative pbuilder executable")
gr_pbuilder.add_argument("--basetgz", dest="basetgz", default="/var/cache/pbuilder/base.tgz", env_var="BASETGZ",
help="Cache and reuse the pbuilder base environment. gopythongo will call pbuilder "
"create on this file if it doesn't exist")
gr_pbuilder.add_argument("--distribution", dest="pbuilder_distribution", default=None, env_var="DISTRIBUTION",
help="Use this distribution for creating the pbuilder environment using debootstrap.")
gr_pbuilder.add_argument("--pbuilder-force-recreate", dest="pbuilder_force_recreate", action="store_true",
help="Delete the base environment if it exists already")
gr_pbuilder.add_argument("--pbuilder-reprovision", dest="pbuilder_reprovision", action="store_true",
default=False,
help="Run all --run-after-create commands regardless of whether the pbuilder base "
"environment already exists.")
gr_pbuilder.add_argument("--pbuilder-opts", dest="pbuilder_opts", default="", env_var="PBUILDER_OPTS",
help="Options which will be put into every pbuilder command-line executed by "
"GoPythonGo")
gr_pbuilder.add_argument("--pbuilder-create-opts", dest="pbuilder_create_opts", default="",
env_var="PBUILDER_CREATE_OPTS",
help="Options which will be appended to the pbuilder --create command-line")
gr_pbuilder.add_argument("--pbuilder-execute-opts", dest="pbuilder_execute_opts", default="",
env_var="PBUILDER_EXECUTE_OPTS",
help="Options which will be appended to the pbuilder --execute command-line")
gr_pbuilder.add_argument("--no-install-defaults", dest="install_defaults", action="store_false",
default=True,
help="By default GoPythonGo will always install python, python-virtualenv, "
"python-pip, python[3]-dev, virtualenv and possibly eatmydata. If you set this "
"flag you will have to install python using --install-pkg, or GoPythonGo will "
"not be able to run inside the container, but this gives you more control about "
"what Python version runs.")
评论列表
文章目录