151 activate_path = os.path.join(remotevirtualenvpath, "bin/activate") |
151 activate_path = os.path.join(remotevirtualenvpath, "bin/activate") |
152 if "remote_baseline_venv" in env and env.remote_baseline_venv: |
152 if "remote_baseline_venv" in env and env.remote_baseline_venv: |
153 prefix_str = "source \"%s\"" % os.path.join(env.remote_baseline_venv, "bin/activate") |
153 prefix_str = "source \"%s\"" % os.path.join(env.remote_baseline_venv, "bin/activate") |
154 else: |
154 else: |
155 prefix_str = "echo" |
155 prefix_str = "echo" |
|
156 with settings(warn_only=True): |
|
157 run("rm -fr \"%s\"" % remotevirtualenvpath) |
156 run("mkdir -p \"%s\"" % remotevirtualenvpath) |
158 run("mkdir -p \"%s\"" % remotevirtualenvpath) |
157 with prefix(prefix_str), cd(os.path.join(remote_venv_export_path,"virtualenv","web")): |
159 with prefix(prefix_str), cd(os.path.join(remote_venv_export_path,"virtualenv","web")): |
158 run("python create_python_env.py") |
160 run("python create_python_env.py") |
159 run("python project-boot.py --unzip-setuptools --no-site-packages --clear --type-install=local \"%s\"" % remotevirtualenvpath) |
161 run("python project-boot.py \"%s\"" % remotevirtualenvpath) |
160 with prefix("source \"%s\"" % activate_path): |
162 with prefix("source \"%s\"" % activate_path): |
161 run("pip install -r \"%s\"" % os.path.join(remote_venv_export_path,"virtualenv","web","res","srvr_requirements.txt")) |
163 run("pip install -r \"%s\"" % os.path.join(remote_venv_export_path,"virtualenv","web","res","srvr_requirements.txt")) |
162 |
164 |
163 def do_sync_ldt(version, export_path): |
165 def do_sync_ldt(version, export_path): |
164 print("do_sync_ldt with version %s and path %s" % (version,export_path)) |
166 print("do_sync_ldt with version %s and path %s" % (version,export_path)) |