🌐 AI搜索 & 代理 主页
Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion packages/postgresml-python/DEBIAN/postinst
Original file line number Diff line number Diff line change
Expand Up @@ -7,5 +7,5 @@ set -e
# Setup virtualenv
virtualenv /var/lib/postgresml-python/pgml-venv
source "/var/lib/postgresml-python/pgml-venv/bin/activate"
python -m pip install -r "/etc/postgresml-python/requirements.linux.txt"
python -m pip install -r "/etc/postgresml-python/requirements.txt"
deactivate
8 changes: 6 additions & 2 deletions packages/postgresml-python/build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -28,12 +28,16 @@ rm "$deb_dir/release.sh"
(cat ${SCRIPT_DIR}/DEBIAN/prerm | envsubst '${PGVERSION}') > "$deb_dir/DEBIAN/prerm"
(cat ${SCRIPT_DIR}/DEBIAN/postrm | envsubst '${PGVERSION}') > "$deb_dir/DEBIAN/postrm"

cp ${SCRIPT_DIR}/../../pgml-extension/requirements.linux.txt "$deb_dir/etc/postgresml-python/requirements.linux.txt"
if [[ "$ARCH" == "amd64" ]]; then
cp ${SCRIPT_DIR}/../../pgml-extension/requirements.linux.txt "$deb_dir/etc/postgresml-python/requirements.txt"
else
cp ${SCRIPT_DIR}/../../pgml-extension/requirements.macos.txt "$deb_dir/etc/postgresml-python/requirements.txt"
fi

virtualenv --python="python$PYTHON_VERSION" "$deb_dir/var/lib/postgresml-python/pgml-venv"
source "$deb_dir/var/lib/postgresml-python/pgml-venv/bin/activate"

python -m pip install -r "${deb_dir}/etc/postgresml-python/requirements.linux.txt"
python -m pip install -r "${deb_dir}/etc/postgresml-python/requirements.txt"

deactivate

Expand Down