MCPcopy Create free account
hub / github.com/Azure/azure-storage-python / create_py2_venv

Function create_py2_venv

validate_packages.py:65–73  ·  view source on GitHub ↗
(environment)

Source from the content-addressed store, hash-verified

63
64# create virtual environment for python 2
65def create_py2_venv(environment):
66 dir_name = 'py2test-' + environment
67 pip_location = dir_name + '/bin/pip'
68
69 delete_directory_if_exists(dir_name)
70 os.system('virtualenv ' + dir_name) # this creates the virtual environment
71 install_dependency_packages(pip_location)
72 install_storage_package(pip_location, environment)
73 return dir_name + '/bin/python'
74
75
76# create virtual environment for python 3

Callers 1

Calls 3

install_storage_packageFunction · 0.85

Tested by

no test coverage detected