Skip to content

Commit

Permalink
Make sure pycheck uses the right installation (#507)
Browse files Browse the repository at this point in the history
As reported by [this
issue](#505), the `pycheck`
test suite uses the global PG installation instead of the one specified
by `pg_config`. This fixes it.
  • Loading branch information
Y-- authored Dec 20, 2024
1 parent 82830af commit 558b1ba
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ installcheck: all install
$(MAKE) check-regression-duckdb

pycheck: all install
pytest -n $(PYTEST_CONCURRENCY)
LD_LIBRARY_PATH=$(PG_LIBDIR):${LD_LIBRARY_PATH} pytest -n $(PYTEST_CONCURRENCY)

check: installcheck pycheck

Expand Down
1 change: 1 addition & 0 deletions Makefile.global
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ PG_CONFIG ?= pg_config

PGXS := $(shell $(PG_CONFIG) --pgxs)
PG_LIB := $(shell $(PG_CONFIG) --pkglibdir)
PG_LIBDIR := $(shell $(PG_CONFIG) --libdir)
INCLUDEDIR := ${shell $(PG_CONFIG) --includedir}
INCLUDEDIR_SERVER := ${shell $(PG_CONFIG) --includedir-server}

Expand Down

0 comments on commit 558b1ba

Please sign in to comment.