Closed JeanMichelDaivope closed 1 year ago
Hi @JeanMichelDaivope Please refer to our installation guide https://github.com/vmware/vsphere-automation-sdk-python#quick-start-guide
Hi @JeanMichelDaivope Please refer to our installation guide https://github.com/vmware/vsphere-automation-sdk-python#quick-start-guide
Thanks @aagrawal3 for your quick answer.
Of course it works through github, but the tool I use needs to install it like any other regular python package (i.e pip install vsphere-automation-sdk-python
... )
And this does not work because the Py package is not valid :
It does not contains the LICENCE.txt file OR the setup directive is wrong :
import os
from setuptools import setup
def read(fname):
with open(os.path.join(os.path.dirname(__file__), fname)) as fn:
return fn.read()
setup(
name='vsphere-automation-sdk-python',
version='0.0.1',
description='vsphere-automation-sdk-python',
long_description=read('README.rst'),
**license=read('LICENSE.txt'),**
author='VMware, Inc.',
url='https://github.com/vmware/vsphere-automation-sdk-python',
)
Here are the tar contents :
Can you please fix the setup section or add the missing file ?
Hi @JeanMichelDaivope
Please note that our python SDK is not published on PyPI, although there is a placeholder for it https://pypi.org/project/vsphere-automation-sdk/#description
A regular pip install through PyPI will not work. You can try local installation option if you do not wish to install through http url. https://github.com/vmware/vsphere-automation-sdk-python#2-local-installation
Answered. Closing this issue. Please feel free to reopen if needed.
Describe the bug
It seems that the LICENSE.txt file is missing in the vsphere-automation-sdk-python-0.0.1.tar.gz file : I have an error while installing this python package :
Reproduction steps
Run install :
/usr/bin/python3 -m pip install --cache-dir=/output/wheels vsphere-automation-sdk-python
...
Expected behavior
The vsphere-automation-sdk-python-0.0.1 installs successfully
Additional context