Closed polski-g closed 1 day ago
Not really a solution for the problem, but I was able to add the vSphere Automation SDK by downloading the repository (git submodule or zip and extract) as a subfolder in the project dir and then adding all components manually:
Add all the wheel files from the SDK's lib directory.
pdm add ./vsphere-automation-sdk-python/lib/vapi-runtime/vapi_runtime-2.44.0-py2.py3-none-any.whl
pdm add ./vsphere-automation-sdk-python/lib/vcenter-bindings/vcenter_bindings-4.2.0-py2.py3-none-any.whl
pdm add ./vsphere-automation-sdk-python/lib/vapi-common-client/vapi_common_client-2.44.0-py2.py3-none-any.whl
pdm add ./vsphere-automation-sdk-python/lib/vmwarecloud-aws/vmwarecloud_aws-1.64.0-py2.py3-none-any.whl
pdm add ./vsphere-automation-sdk-python/lib/nsx-python-sdk/nsx_python_sdk-4.1.2.0.0-py2.py3-none-any.whl
pdm add ./vsphere-automation-sdk-python/lib/nsx-policy-python-sdk/nsx_policy_python_sdk-4.1.2.0.0-py2.py3-none-any.whl
pdm add ./vsphere-automation-sdk-python/lib/nsx-vmc-policy-python-sdk/nsx_vmc_policy_python_sdk-4.1.2.0.0-py2.py3-none-any.whl
pdm add ./vsphere-automation-sdk-python/lib/nsx-vmc-aws-integration-python-sdk/nsx_vmc_aws_integration_python_sdk-4.1.2.0.0-py2.py3-none-any.whl
pdm add ./vsphere-automation-sdk-python/lib/vmwarecloud-draas/vmwarecloud_draas-1.23.0-py2.py3-none-any.whl
Add all other requirements from ./vsphere-automation-sdk-python/requirements.txt
(without the SDK properties).
pdm add "lxml>=4.3.0" "pyVmomi>=6.7" "six>=1.12" "requests>=2.27.1" "pyOpenSSL>=22.0.0" "cryptography>=37.0.2"
The vSphere automation SDK has some strange ideas in their setup.py, which is causing PDM to fail to install it.
Steps to reproduce
Actual behavior
Expected behavior
Install the binary wheel files referenced by the vsphere SDK.
Environment Information