Skip to content

Commit

Permalink
- changed to using sysconfig rather than python3-config, as the latter (
Browse files Browse the repository at this point in the history
#715)

often times (always?) isn't available on venv and such;
  • Loading branch information
jaltmayerpizzorno authored Oct 16, 2023
1 parent 2814d8c commit 295ec24
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion GNUmakefile
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,8 @@ CXXFLAGS = -std=c++14 -Wall -g -O3 -DNDEBUG -D_REENTRANT=1 -DHL_USE_XXREALLOC=1
INCLUDES = -Isrc -Isrc/include
INCLUDES := $(INCLUDES) -Ivendor/Heap-Layers -Ivendor/Heap-Layers/wrappers -Ivendor/Heap-Layers/utility
INCLUDES := $(INCLUDES) -Ivendor/printf
INCLUDES := $(INCLUDES) $(shell python3-config --includes)
# python3-config may not be available in venv and such
INCLUDES := $(INCLUDES) -I$(shell python3 -c "import sysconfig; print(sysconfig.get_path('include'))")

ifeq ($(shell uname -s),Darwin)
LIBFILE := lib$(LIBNAME).dylib
Expand Down

0 comments on commit 295ec24

Please sign in to comment.