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: docs/develop/python-plugins/setup/index.md
+34-1Lines changed: 34 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -74,7 +74,7 @@ This section describes which backend components are needed on the DataIntegratio
74
74
### Package Index Locations
75
75
76
76
The basic setup allows for installation of packages from the [pypi.org](https://pypi.org/search/?q=%22cmem-plugin-%22) python package index, maintained by the [Python Software Foundation](https://www.python.org/psf-landing/).
77
-
In order to change the index server, from where you can install python packages, you can use the following environment variables:
77
+
In order to change the remote index server, from where you can install python packages, you need to set the following environment variables in the data integration container:
78
78
79
79
-`PIP_INDEX_URL` - Base URL of the default python package index Base URL. This should point to a repository which is compliant with [PEP 503 (the simple repository API)](https://peps.python.org/pep-0503/). If this variable is not set, the [official Python Package Index](https://pypi.python.org/simple) is used.
80
80
- Example Value: `https://pypi.eccenca.com/simple` (the eccenca Python Package Index holds only published Corporate Memory Python Plugins and respective dependencies)
@@ -87,6 +87,39 @@ In order to change the index server, from where you can install python packages,
87
87
For individual needs, you can use additional environment variables known by `pip` (`PIP_TRUSTED_HOST`, `PIP_CERT`, ...).
88
88
Please have a look at the [pip documentation](https://pip.pypa.io/en/stable/topics/configuration/#environment-variables).
89
89
90
+
### Local Packages only
91
+
92
+
In cases, where you have limited or disabled network capabilities to the internet, you can disable package retrieval and provide the packages in a local directory.
93
+
To do so, you need to set the following environment variables in the data integration container:
94
+
95
+
-`PIP_NO_INDEX` - set the value as `true` to disable the package retrieval completely.
96
+
-`PIP_FIND_LINKS` - set to a container internal directory, where the packages and its dependencies will be provided.
97
+
- Example Value: `/data/downloaded-packages`
98
+
99
+
This setup will allow installation of packages and its dependencies ONLY from the given directory.
100
+
101
+
As a next step, you need to provide the needed packages in this directory.
102
+
To do so, use the [`pip download`](https://pip.pypa.io/en/stable/cli/pip_download/) command and copy or mount the downloaded files in your container.
103
+
104
+
??? note "Example shell session showing the usage of `pip download`"
0 commit comments