This commit is contained in:
ahmadbilalkhalid 2019-08-29 23:14:51 +05:00
commit 7c0ccebeb5
6 changed files with 4 additions and 7 deletions

View file

@ -70,5 +70,4 @@ def setup(path, auth_name, auth_seed, auth_realm,
)
shutil.copytree(src=os.path.join(repo_name, "etcd3_wrapper"),
dst=os.path.join(repo_name, "ucloud_common", "etcd3_wrapper"))
op.add(PipenvOperation.create, path=repo_name, site_packages=True)
op.add(PipenvOperation.install, path=repo_name)

View file

@ -47,7 +47,6 @@ def setup(path, base_dir, file_prefix, etcd_url, etcd_password):
url="https://code.ungleich.ch/ahmedbilal/etcd3_wrapper",
)
op_result.add(PipenvOperation.create, path=repo_name, site_packages=True)
op_result.add(PipenvOperation.install, path=repo_name)
# Write Crontab entry

View file

@ -82,10 +82,11 @@ class PipenvOperation(object):
@staticmethod
def install(path=".", package_name=None):
pip_install_options = "PIP_INSTALL_OPTION=\"-- --jobs=6\""
if package_name:
command = f"pipenv install {package_name}"
command = f"{pip_install_options} pipenv install {package_name}"
else:
command = f"pipenv install"
command = f"{pip_install_options} pipenv install"
try:
output = subprocess.check_output(command.split(), cwd=path)
except subprocess.CalledProcessError as e:

View file

@ -61,5 +61,4 @@ def setup(path, ssh_username, ssh_key_path, ssh_key_pass, etcd_url, etcd_passwor
shutil.copytree(src=os.path.join(repo_name, "etcd3_wrapper"),
dst=os.path.join(repo_name, "ucloud_common", "etcd3_wrapper"))
op_result.add(PipenvOperation.create, path=repo_name, site_packages=True)
op_result.add(PipenvOperation.install, path=repo_name)

View file

@ -46,7 +46,6 @@ def setup(path, base_dir, etcd_url, etcd_password):
url="https://code.ungleich.ch/ahmedbilal/etcd3_wrapper",
)
op_result.add(PipenvOperation.create, path=repo_name, site_packages=True)
op_result.add(PipenvOperation.install, path=repo_name)
# Write Crontab entry