This commit is contained in:
Vadim Pisarevsky 2012-01-27 20:28:59 +00:00
parent 3ec2f7f5f0
commit b33c9b10bc

View File

@ -614,10 +614,6 @@ if(CMAKE_HOST_WIN32)
set(PYTHON_PACKAGES_PATH "${PYTHON_PATH}/Lib/site-packages")
endif()
IF ("${PYTHON_VERSION_MAJOR_MINOR}" VERSION_GREATER 2.4)
SET(PYTHON_EXECUTABLE ${PYTHON_EXECUTABLE} -B)
ENDIF()
# Attempt to discover the NumPy include directory. If this succeeds, then build python API with NumPy
execute_process(COMMAND ${PYTHON_EXECUTABLE} -c "import os; os.environ['DISTUTILS_USE_SDK']='1'; import numpy.distutils; print numpy.distutils.misc_util.get_numpy_include_dirs()[0]"
RESULT_VARIABLE PYTHON_NUMPY_PROCESS