File tree Expand file tree Collapse file tree 2 files changed +7
-3
lines changed
packages/postgresml-python Expand file tree Collapse file tree 2 files changed +7
-3
lines changed Original file line number Diff line number Diff line change 77# Setup virtualenv
88virtualenv /var/lib/postgresml-python/pgml-venv
99source " /var/lib/postgresml-python/pgml-venv/bin/activate"
10- python -m pip install -r " /etc/postgresml-python/requirements.linux. txt"
10+ python -m pip install -r " /etc/postgresml-python/requirements.txt"
1111deactivate
Original file line number Diff line number Diff line change @@ -28,12 +28,16 @@ rm "$deb_dir/release.sh"
2828(cat ${SCRIPT_DIR} /DEBIAN/prerm | envsubst ' ${PGVERSION}' ) > " $deb_dir /DEBIAN/prerm"
2929(cat ${SCRIPT_DIR} /DEBIAN/postrm | envsubst ' ${PGVERSION}' ) > " $deb_dir /DEBIAN/postrm"
3030
31- cp ${SCRIPT_DIR} /../../pgml-extension/requirements.linux.txt " $deb_dir /etc/postgresml-python/requirements.linux.txt"
31+ if [[ " $ARCH " == " amd64" ]]; then
32+ cp ${SCRIPT_DIR} /../../pgml-extension/requirements.linux.txt " $deb_dir /etc/postgresml-python/requirements.txt"
33+ else
34+ cp ${SCRIPT_DIR} /../../pgml-extension/requirements.macos.txt " $deb_dir /etc/postgresml-python/requirements.txt"
35+ fi
3236
3337virtualenv --python=" python$PYTHON_VERSION " " $deb_dir /var/lib/postgresml-python/pgml-venv"
3438source " $deb_dir /var/lib/postgresml-python/pgml-venv/bin/activate"
3539
36- python -m pip install -r " ${deb_dir} /etc/postgresml-python/requirements.linux. txt"
40+ python -m pip install -r " ${deb_dir} /etc/postgresml-python/requirements.txt"
3741
3842deactivate
3943
You can’t perform that action at this time.
0 commit comments