Skip to content

Commit

Permalink
Merge pull request #37 from pawansnegi/fix_cluster_venv
Browse files Browse the repository at this point in the history
added new link to create venv in remote pc
  • Loading branch information
prabhuramachandran authored Jul 4, 2024
2 parents 3dd0b31 + a564e55 commit 06338c0
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions automan/cluster_manager.py
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ class ClusterManager(object):
if hash virtualenv 2>/dev/null; then
virtualenv -p python3 --system-site-packages envs/{project_name}
else
python3 virtualenv.py --system-site-packages envs/{project_name}
python3 virtualenv.pyz --system-site-packages envs/{project_name}
fi
source envs/{project_name}/bin/activate
Expand Down Expand Up @@ -228,10 +228,10 @@ def _get_helper_scripts(self):
When overriding this, you can return None or '' if you do not need any.
"""
script = os.path.join(self.scripts_dir, 'virtualenv.py')
script = os.path.join(self.scripts_dir, 'virtualenv.pyz')
if not os.path.exists(script):
print("Downloading latest virtualenv.py")
url = 'https://raw.githubusercontent.com/pypa/virtualenv/master/virtualenv.py'
print("Downloading latest virtualenv.pyz")
url = 'https://bootstrap.pypa.io/virtualenv.pyz'
opener = urlopen(url)
with open(script, 'wb') as f:
f.write(opener.read())
Expand Down

0 comments on commit 06338c0

Please sign in to comment.