Closed dennym closed 1 year ago
Hi @dennym Please share your python version, pip version and Dockerfile.
Hi @dennym
This seems to be a documentation issue. Please try
RUN pip install -U lib/**/*.whl
We have updated the README in latest commit. Please reopen if issue persists.
Describe the bug
I followed the instructions for the air gap installation and prepared the zip file of the dependencies. Copied them into my "air gap" Dockerfile and when running
pip install -U lib/*/*.whl
it eventually fails on trying to connect to the outside world.Bonusquestion regarding the instructions: According to the readme I am supposed to
pip install -U lib/*/*.whl
and thenpip install -U
pwd`. Wouldn't it the other way around make more sense since it supposed to first install the external requirements and then the
lib/-libraries? Or am I supposed to unzip original zipfile of vsphere-automation-sdk-python first and then unzip the precompiled package into it to merge the lib folder? But even then the requirements wheels are in
lib/.whl`... The instructions are a bit unclear for me.Reproduction steps
git clone [vsphere-automation-sdk-python](https://github.com/vmware/vsphere-automation-sdk-python)
git checkout v8.0.1.0
pip download -r requirements_pypi.txt -d lib
zip -r lib.zip lib/
in DockerfileCOPY lib.zip /
RUN unzip lib.zip
RUN pip install -U lib/*/*.whl
Expected behavior
To run without errors.