Open sodul opened 1 year ago
Hi @sodul,
The deprecation warnings are indicating that the vsphere-automation-sdk-python@v8.0.0.1
package is being installed using the legacy setup.py
method and this behavior will no longer be supported starting with pip version 23.1. To fix this issue, follow the steps below:
pip install --upgrade pip
-use-pep517
option as follows: pip install --use-pep517 git+https://github.com/vmware/vsphere-automation-sdk-python@v8.0.0.1#egg=vSphere-Automation-SDK
pip show vsphere-automation-sdk-python
Using the --use-pep517
option will force pip to use the new method, which ensures that the package is installed correctly with the latest versions of third-party libraries.
cc: @shwetapurohit @aagrawal3
Describe the bug
When installing
vsphere-automation-sdk-python@v8.0.0.1
with a recent version ofpip
we get deprecation warnings that setup.py will no longer be supported starting with pip 23.1.Reproduction steps
pip install git+https://github.com/vmware/vsphere-automation-sdk-python@v8.0.0.1#egg=vSphere-Automation-SDK
Expected behavior
The installation should complete without conflicts or deprecation warnings.
Additional context
We use the SDK alongside many other third party libraries and we need to move forward with recent versions of python, pip, setuptools, etc... This makes it important for us to be able to install the SDK with recent versions of third party libraries.
See https://github.com/pypa/pip/issues/8559