mirror of https://github.com/sipwise/sems.git
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
19 lines
705 B
19 lines
705 B
# PYTHON_VERSION might also be 2.2 -- except for the use of GIL
|
|
# do a ls /usr/include/python2.3/Python.h to see if it's there
|
|
PYTHON_VERSION ?= `python -c 'import sys;print sys.version[0:3]';`
|
|
PY_VER = $(PYTHON_VERSION)
|
|
PY_EXE = python$(PY_VER)
|
|
|
|
# adjust to point to python include path
|
|
# can also be /usr/include/python$(PY_VER)
|
|
# look for Python.h in the specified path
|
|
# Python prefix is what you configured python with
|
|
# if you built from source (e.g. ./configure --with-prefix=/usr/local)
|
|
# on debian it's often /usr, on SuSE and FreeBSD /usr/local
|
|
|
|
PYTHON_DIR = $(shell $(PY_EXE) ./python_inc.py)
|
|
PYTHON_LIBDIR = $(shell $(PY_EXE) ./python_lib.py)
|
|
|
|
#
|
|
py_sems_modules_dir?=lib/$(APP_NAME)/py_sems
|