diff --git a/app/api.py b/app/api.py index cf37e80..7f9c063 100644 --- a/app/api.py +++ b/app/api.py @@ -51,6 +51,6 @@ def setup(path, auth_name, auth_seed, auth_realm, install_available(repo_name) # Create virtualenv with site-packages enabled and install all dependencies - sp.check_output(['pipenv', 'install'], cwd=repo_name) + sp.check_output(['pipenv', 'install','--python', '3'], cwd=repo_name) sp.check_output(['pipenv', 'run', 'python', 'create_image_store.py'], cwd=repo_name) \ No newline at end of file diff --git a/app/cli.py b/app/cli.py index 78195eb..0d2855b 100644 --- a/app/cli.py +++ b/app/cli.py @@ -39,4 +39,4 @@ def setup(path, api_server, name, realm, seed, branch): install_available(repo_name) # Create virtualenv with site-packages enabled and install all dependencies - sp.check_output(['pipenv', 'install'], cwd=repo_name) \ No newline at end of file + sp.check_output(['pipenv', 'install','--python', '3'], cwd=repo_name) \ No newline at end of file diff --git a/app/file.py b/app/file.py index 6aa0498..d648a2e 100644 --- a/app/file.py +++ b/app/file.py @@ -42,7 +42,7 @@ def setup(path, base_dir, file_prefix, etcd_url, branch): install_available(repo_name) # Create virtualenv with site-packages enabled and install all dependencies - sp.check_output(['pipenv', 'install'], cwd=repo_name) + sp.check_output(['pipenv', 'install','--python', '3'], cwd=repo_name) # Write Crontab entry diff --git a/app/host.py b/app/host.py index b645f51..4dfaeae 100644 --- a/app/host.py +++ b/app/host.py @@ -47,4 +47,4 @@ def setup(path, ssh_username, ssh_key_path, ssh_key_pass, etcd_url, without_ceph install_available(repo_name) # Create virtualenv with site-packages enabled and install all dependencies - sp.check_output(['pipenv', 'install'], cwd=repo_name) \ No newline at end of file + sp.check_output(['pipenv', 'install','--python', '3'], cwd=repo_name) \ No newline at end of file diff --git a/app/scheduler.py b/app/scheduler.py index f506a85..b998f44 100644 --- a/app/scheduler.py +++ b/app/scheduler.py @@ -47,4 +47,4 @@ def setup(path, vm_prefix, host_prefix, request_prefix, etcd_url, branch): install_available(repo_name) # Create virtualenv with site-packages enabled and install all dependencies - sp.check_output(['pipenv', 'install'], cwd=repo_name) \ No newline at end of file + sp.check_output(['pipenv', 'install','--python', '3'], cwd=repo_name) \ No newline at end of file