Skip to content

Commit

Permalink
Try to install pscopg2 prereqs in sphinx gh action part N
Browse files Browse the repository at this point in the history
  • Loading branch information
TorecLuik committed Dec 3, 2024
1 parent cb9bf4c commit 4b54777
Showing 1 changed file with 1 addition and 13 deletions.
14 changes: 1 addition & 13 deletions .github/workflows/sphinx.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,19 +16,7 @@ jobs:
with:
pre-build-command: |
# Install necessary dependencies
apt-get update -y && \
apt-get install -y gcc python3-dev libpq-dev postgresql-client && \
# Ensure pg_config is available and add it to PATH if needed
if ! command -v pg_config &> /dev/null; then
PG_CONFIG_PATH=$(find /usr/lib/postgresql -type f -name pg_config | head -n 1)
if [ -n "$PG_CONFIG_PATH" ]; then
export PATH=$(dirname "$PG_CONFIG_PATH"):$PATH
else
echo "pg_config not found, exiting..." >&2
exit 1
fi
fi
# Validate pg_config installation
apt-get update --allow-releaseinfo-change -y && apt-get install -y gcc python3-dev libpq-dev postgresql-client
pg_config --version
env:
SETUPTOOLS_SCM_PRETEND_VERSION: 1
Expand Down

0 comments on commit 4b54777

Please sign in to comment.