Skip to content
Open
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
15 changes: 13 additions & 2 deletions gpMgmt/bin/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -111,8 +111,19 @@ download-python-deps:
else \
echo "PyGreSQL-$(PYGRESQL_VERSION).tar.gz already exists, skipping download"; \
fi
# Install wheel and cython for PyYAML building
pip3 install --user wheel "cython<3.0.0"
# Install wheel and cython for PyYAML building (only if not exists)
@if python3 -c "import wheel" >/dev/null 2>&1; then \
echo "wheel already exists, skipping installation"; \
else \
echo "Installing wheel..."; \
pip3 install --user wheel 2>/dev/null || pip3 install --user --break-system-packages wheel; \
fi
@if python3 -c "import cython" >/dev/null 2>&1; then \
echo "cython already exists, skipping installation"; \
else \
echo "Installing cython..."; \
pip3 install --user "cython<3.0.0" 2>/dev/null || pip3 install --user --break-system-packages "cython<3.0.0"; \
fi

#
# PyGreSQL
Expand Down
Loading