Skip to content
This repository has been archived by the owner on Jan 30, 2023. It is now read-only.

Commit

Permalink
build/pkgs/python3/spkg-build.in: Make sure that python finds sqlite3…
Browse files Browse the repository at this point in the history
… when determining which extension modules to build
  • Loading branch information
Matthias Koeppe committed Oct 12, 2021
1 parent e33bc89 commit 2101b8c
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions build/pkgs/python3/spkg-build.in
Original file line number Diff line number Diff line change
Expand Up @@ -84,8 +84,13 @@ sdh_configure --enable-shared $PYTHON_CONFIGURE
# Make sure -L. is placed before -L$SAGE_LOCAL/lib so that python and extension
# modules are linked with the right libpython; we pass this in at make time
# only, since we don't want -L. to be saved as one of the default LDFLAGS
# used for building third-party extension modules
sdh_make LDFLAGS="-L. $LDFLAGS"
# used for building third-party extension modules.
#
# Trac #32442: As we now install python in SAGE_VENV, not SAGE_LOCAL,
# we need to provide paths into $SAGE_LOCAL, so that setup.py finds
# the libraries needed for the extension modules - in particular sqlite3.
# (The search code there does not know about CPATH and LIBRARY_PATH.)
sdh_make LDFLAGS="-L. -L$SAGE_LOCAL/lib $LDFLAGS" CPPFLAGS="-I$SAGE_LOCAL/include $CPPFLAGS"

if [ "$UNAME" = "Darwin" ]; then
export DYLD_LIBRARY_PATH="."
Expand Down

0 comments on commit 2101b8c

Please sign in to comment.