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

Function install_storage_package

validate_packages.py:30–55  ·  view source on GitHub ↗
(executable_location, environment)

Source from the content-addressed store, hash-verified

28
29# install the storage packages into the virtual environment
30def install_storage_package(executable_location, environment):
31 if environment == 'test':
32 check_call([executable_location, 'install', 'azure-storage-blob', '-i',
33 'https://test.pypi.org/legacy/', '--no-deps'])
34 check_call([executable_location, 'install', 'azure-storage-file', '-i',
35 'https://test.pypi.org/legacy/', '--no-deps'])
36 check_call([executable_location, 'install', 'azure-storage-queue', '-i',
37 'https://test.pypi.org/legacy/', '--no-deps'])
38 elif environment == 'prod':
39 check_call([executable_location, 'install', 'azure-storage-blob'])
40 check_call([executable_location, 'install', 'azure-storage-file'])
41 check_call([executable_location, 'install', 'azure-storage-queue'])
42 else:
43 # install the namespace package first
44 nspkg_wheel = glob.glob("dist/*nspkg*.whl")
45 check_call([executable_location, 'install', os.path.abspath(nspkg_wheel[0])])
46
47 # install the common package
48 common_wheel = glob.glob("dist/*common*.whl")
49 check_call([executable_location, 'install', os.path.abspath(common_wheel[0])])
50
51 # install all the other packages
52 # this simply skips the common and namespace package since they are already installed
53 storage_wheels = glob.glob("dist/*.whl")
54 for wheel in storage_wheels:
55 check_call([executable_location, 'install', os.path.abspath(wheel)])
56
57
58# clean up the test directory containing the virtual environment

Callers 2

create_py2_venvFunction · 0.85
create_py3_venvFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected