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
+9-8Lines changed: 9 additions & 8 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -5,6 +5,7 @@ icon: material/cog-outline
5
5
tags:
6
6
- Python
7
7
---
8
+
8
9
# Setup and Configuration
9
10
10
11
This section describes which backend components are needed on the Build (DataIntegration) server, in order to use python plugins.
@@ -74,24 +75,23 @@ This section describes which backend components are needed on the Build (DataInt
74
75
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/).
75
76
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:
76
77
77
-
-`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.
78
-
- Example Value: `https://pypi.eccenca.com/simple` (the eccenca Python Package Index holds only published Corporate Memory Python Plugins and respective dependencies)
78
+
-`UV_DEFAULT_INDEX` - Base URL of the default python package index. 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.
79
79
- Changing this value means, that you can install packages **only** from this repository.
80
-
-`PIP_EXTRA_INDEX_URL` - Extra URLs of package indexes to use in addition to the default package index.
80
+
-`UV_INDEX` - Extra URLs of package indexes to use in addition to the default package index.
81
81
- Example Value: `https://pypi.eccenca.com/simple https://example.org/simple`
82
82
- Multiple index URLs have to be given space-separated.
83
-
- Changing this values means you can install packages from the given repositories **in addition** to the main index.
83
+
- Changing this values means you can install packages from the given repositories **in addition** to the default index.
84
84
85
-
For individual needs, you can use additional environment variables known by `pip` (`PIP_TRUSTED_HOST`, `PIP_CERT`, ...).
86
-
Please have a look at the [pip documentation](https://pip.pypa.io/en/stable/topics/configuration/#environment-variables).
85
+
For individual needs, you can use additional environment variables known by `uv` (e.g. `SSL_CERT_FILE`).
86
+
Please have a look at the [uv documentation](https://docs.astral.sh/uv/reference/environment/).
87
87
88
88
### Local Packages only
89
89
90
90
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.
91
91
To do so, you need to set the following environment variables in the data integration container:
92
92
93
-
-`PIP_NO_INDEX` - set the value as `true` to disable the package retrieval completely.
94
-
-`PIP_FIND_LINKS` - set to a container internal directory, where the packages and its dependencies will be provided.
93
+
-`UV_OFFLINE` - set the value as `true` to disable the package retrieval completely.
94
+
-`UV_FIND_LINKS` - set to a container internal directory, where the packages and its dependencies will be provided.
95
95
- Example Value: `/data/downloaded-packages`
96
96
97
97
This setup will allow installation of packages and its dependencies ONLY from the given directory.
@@ -129,5 +129,6 @@ In addition Build (DataIntegration) needs write access to that folder.
129
129
This is tested on Build (DataIntegration) startup.
130
130
131
131
!!! info
132
+
132
133
By setting environment variable `PYTHONPATH_FAILURE` (default: `true`) to other values than `true` this behavior can be skipped.
133
134
However this might effect the usability of python plugins.
0 commit comments