You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: LICENSE
+8-2Lines changed: 8 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -1,6 +1,12 @@
1
-
The MIT License
1
+
LICENSE
2
2
3
-
Copyright 2017 VMware Inc.
3
+
vsphere_automation_sdk_python 8.0
4
+
5
+
Copyright (c) 2016-2022 VMware, Inc. All rights reserved.
6
+
7
+
This product is licensed to you under the MIT License (the License). You may not use this product except in compliance with the License.
8
+
9
+
MIT License
4
10
5
11
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
@@ -42,15 +42,57 @@ A Python virtual environment is also highly recommended.
42
42
*[Install a virtual env for Python 3](https://docs.python.org/3/tutorial/venv.html)
43
43
44
44
### Installing Required Python Packages
45
+
SDK package installation commands may differ depending on the environment where it is being installed. The three installation options provided below are for different environments.
46
+
*pip* and *setuptools* are common requirements for these installation types, upgrade to the latest *pip* and *setuptools*.
45
47
46
-
Be sure to upgrade to the latest pip and setuptools.
48
+
**NOTE:** The SDK also requires OpenSSL 1.0.1+ in order to support TLS1.1 & 1.2
47
49
50
+
##### 1. Typical Installation
51
+
This is the recommended way to install the SDK. The installation is done from [PyPI](https://pypi.org/) and [Automation SDK Python Github](https://github.com/vmware/vsphere-automation-sdk-python) repositories.
Local installation can be used in an environment which either do not have Github access or users do not want to install from Github repository.
64
+
65
+
Install all the wheel files from SDK's lib directory
66
+
```cmd
67
+
pip install -U lib/*/*.whl
68
+
```
69
+
Install dependencies like *lxml* and *pyvmomi* from PyPI as other requirements were installed from SDK's lib directory
70
+
```cmd
71
+
pip install -U <SDK_DIRECTORY>
51
72
```
52
73
53
-
**NOTE:** The SDK also requires OpenSSL 1.0.1+ if you want to connect to vSphere 6.5+ in order to support TLS1.1 & 1.2
74
+
##### 3. Installation in an air gap environment
75
+
For this type of environment an additional step is required to ensure SDK's dependencies are available.
76
+
Following dependencies have to be downloaded from PyPI and transferred to the air gap environment.
77
+
78
+
**NOTE:** This step has to be done in an environment which has PyPI access.
79
+
```cmd
80
+
pip download -r requirements_pypi.txt -d lib
81
+
zip -r lib.zip lib/
82
+
```
83
+
Follow these steps in the air gap environment.
84
+
Unzip the lib.zip under automation SDK home directory
85
+
```cmd
86
+
unzip lib.zip
87
+
```
88
+
Install all the dependencies and packages
89
+
```cmd
90
+
pip install -U lib/*/*.whl
91
+
```
92
+
This is to install the "vSphere-Automation-SDK" which provides an SDK version. It also ensures that all the SDK requirements are installed. If not, the installation will fail.
93
+
```cmd
94
+
pip install -U `pwd`
95
+
```
54
96
55
97
### Connect to a vCenter Server
56
98
@@ -79,7 +121,7 @@ Output in a Python Interpreter:
0 commit comments