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,56 @@ 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 installed. The three installation options are provided for different environments. Be sure to upgrade to the latest pip and setuptools.
45
46
46
-
Be sure to upgrade to the latest pip and setuptools.
47
+
**NOTE:** The SDK also requires OpenSSL 1.0.1+ in order to support TLS1.1 & 1.2
47
48
49
+
##### 1. Typical Installation
50
+
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.
63
+
64
+
Install all the wheel files from SDK lib directory
65
+
```cmd
66
+
pip install -U lib/*/*.whl
67
+
```
68
+
Install dependencies like lxml and pyvmomi from PyPi as other requirements were installed from SDK lib directory
69
+
```cmd
70
+
pip install -U <SDK_DIRECTORY>
51
71
```
52
72
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
73
+
##### 3. Installation in an air gap environment
74
+
For these type of environment an additional step is required to ensure SDK's dependencies are available.
75
+
Following dependencies have to be downloaded from PyPi and transferred to the air gap environment.
76
+
77
+
This step has to be done in an environment which has PyPI access.
78
+
```cmd
79
+
pip download -r requirements_pypi.txt -d lib
80
+
zip -r lib.zip lib/
81
+
```
82
+
Following on the air gap environment.
83
+
Unzip the lib.zip under automation SDK home directory
84
+
```cmd
85
+
unzip lib.zip
86
+
```
87
+
Install all the dependencies and packages
88
+
```cmd
89
+
pip install -U lib/*/*.whl
90
+
```
91
+
This is to install the “vSphere-Automation-SDK” which provides an SDK version. This also ensures that everything the SDK needs is installed. If not this will fail.
92
+
```cmd
93
+
pip install -U `pwd`
94
+
```
54
95
55
96
### Connect to a vCenter Server
56
97
@@ -79,7 +120,7 @@ Output in a Python Interpreter:
0 commit comments