diff options
| author | Bjoern Brandenburg <bbb@mpi-sws.org> | 2013-01-15 07:04:13 -0500 |
|---|---|---|
| committer | Bjoern Brandenburg <bbb@mpi-sws.org> | 2013-01-15 07:04:13 -0500 |
| commit | 4cdaafacd7da23c7c86b524ac26a55f54ad861e7 (patch) | |
| tree | 27f921beb7ad8dc0309526da66b0a00b3a352f6e /native | |
| parent | 9a90777ac5b7741a7a1be2c0faff1717c841675f (diff) | |
Inform about Python version during build process
Diffstat (limited to 'native')
| -rw-r--r-- | native/Makefile | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/native/Makefile b/native/Makefile index d9bfa1f..aa8f75c 100644 --- a/native/Makefile +++ b/native/Makefile | |||
| @@ -24,6 +24,7 @@ DEFS ?= | |||
| 24 | OS := $(shell uname) | 24 | OS := $(shell uname) |
| 25 | 25 | ||
| 26 | # How to link Python libraries? | 26 | # How to link Python libraries? |
| 27 | PYTHON_VER := ${shell ${PYTHON} --version 2>&1} | ||
| 27 | ifeq ($(OS),Darwin) | 28 | ifeq ($(OS),Darwin) |
| 28 | # Mac OS X: link against Python Framework | 29 | # Mac OS X: link against Python Framework |
| 29 | PYTHON_INC ?= -I/System/Library/Frameworks/Python.framework/Headers/ | 30 | PYTHON_INC ?= -I/System/Library/Frameworks/Python.framework/Headers/ |
| @@ -36,6 +37,8 @@ PYTHON_INC ?= -I${shell ${PYTHON} -c "import distutils.sysconfig; print distutil | |||
| 36 | PYTHON_LIB ?= | 37 | PYTHON_LIB ?= |
| 37 | SOFLAGS = -shared | 38 | SOFLAGS = -shared |
| 38 | endif | 39 | endif |
| 40 | ${info Linking with ${PYTHON_VER} (headers: ${PYTHON_INC}).} | ||
| 41 | |||
| 39 | 42 | ||
| 40 | # Support for clock_gettime() | 43 | # Support for clock_gettime() |
| 41 | ifeq ($(OS),Linux) | 44 | ifeq ($(OS),Linux) |
