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
This change removes the unnecessary bundled Python packages for a clear
codebase and better ASF license compliance.
Changes made:
- Removed the `pythonSrc` and `pythonSrc/ext` directories from the
source code.
- Updated the `Makefile`, `configure` and other related files to remove
the *pythonsrc_ext* related references.
Instead building the Python packages like psutil, pygresql and pyyaml
via the source code when running the Cloudberry Demo cluster, we can
install them via the command under the top dir:
```
pip3 install -r requirements.txt
```
Copy file name to clipboardExpand all lines: gpMgmt/bin/README.md
+10-6Lines changed: 10 additions & 6 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,15 +1,19 @@
1
1
# For Developers
2
2
3
-
To install the libraries necessary for running scripts or testing, a system python of 2.7 must be available, the version of gcc and g++ used to compile python must be available.
4
-
On most distributions, python will compiled with the same gcc and g++ verion available from the base packages "gcc" and "gcc-c++".
3
+
To install the libraries necessary for running scripts or testing, a system python of 3.x must be available.
5
4
6
-
The command `python -VV` will show the compiler used to compile the version of python being used.
7
-
A `make` in from gpMgmt will install the proper libraries provided a gcc and gcc-c++ are present.
5
+
## Installing Python Dependencies
8
6
9
-
To run any of these python scripts, necessary libraries must be installed, and PYTHONPATH must be modified to use the libraries in this path.
7
+
Install required Python packages using pip:
10
8
9
+
```bash
10
+
pip3 install -r python-dependencies.txt
11
11
```
12
-
PYTHONPATH="\$GPHOME/lib/python:${PYTHONPATH}"
12
+
13
+
To run any of these python scripts, necessary libraries must be installed, and PYTHONPATH must be modified to use the libraries in this path.
14
+
15
+
```bash
16
+
PYTHONPATH="$GPHOME/lib/python:${PYTHONPATH}"
13
17
```
14
18
15
19
This will be set automatically with a `source $GPHOME/greenplum_path.sh`
0 commit comments