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
Another way of packaging Python dependencies is using a virtual environment (`virtualenv`). This allows you to link additional packages
84
82
that may be installed via [`pip`](https://packaging.python.org/installing/) for example.
85
83
To ensure compatibility with the OpenWhisk container, package installations inside a virtualenv must be done in the target environment.
86
-
So the docker image `openwhisk/python2action` or `openwhisk/python3action` should be used to create a virtualenv directory for your action.
84
+
So the docker image `openwhisk/python3action` should be used to create a virtualenv directory for your action.
87
85
88
86
As with basic zip file support, the name of the source file containing the main entry point must be `__main__.py`. In addition, the virtualenv directory must be named `virtualenv`.
89
87
Below is an example scenario for installing dependencies, packaging them in a virtualenv, and creating a compatible OpenWhisk action.
@@ -104,8 +102,6 @@ Below is an example scenario for installing dependencies, packaging them in a vi
While the steps above are shown for Python 3.6, you can do the same for Python 2.7 as well.
108
-
109
105
## Python 3 actions
110
106
111
107
Python 3 actions are executed using Python 3.6.1. This is the default runtime for Python actions, unless you specify the `--kind` flag when creating or updating an action.
@@ -153,48 +149,3 @@ The following packages are available for use by Python actions, in addition to t
153
149
- Werkzeug v0.12
154
150
- yarl v0.9.8
155
151
- zope.interface v4.3.3
156
-
157
-
## Python 2 actions
158
-
159
-
Python 2 actions are executed using Python 2.7.12. To use this runtime, specify the `wsk` CLI parameter `--kind python:2` when creating or updating an action. The following packages are available for use by Python 2 actions, in addition to the Python 2.7 standard library.
0 commit comments