|
From: <ai...@us...> - 2009-07-01 23:59:20
|
Revision: 10108
http://plplot.svn.sourceforge.net/plplot/?rev=10108&view=rev
Author: airwin
Date: 2009-07-01 23:59:19 +0000 (Wed, 01 Jul 2009)
Log Message:
-----------
Implement EXCLUDE_PYTHON_LIBRARIES to workaround numpy installation bug found
by Geoff.
Modified Paths:
--------------
trunk/cmake/modules/python.cmake
Modified: trunk/cmake/modules/python.cmake
===================================================================
--- trunk/cmake/modules/python.cmake 2009-07-01 18:16:26 UTC (rev 10107)
+++ trunk/cmake/modules/python.cmake 2009-07-01 23:59:19 UTC (rev 10108)
@@ -43,7 +43,7 @@
find_package(PythonInterp)
if(NOT PYTHONINTERP_FOUND)
message(STATUS "WARNING: "
- "python interpreter not found. Disabling python bindings")
+ "python interpreter not found. Disabling python bindings")
set(ENABLE_python OFF CACHE BOOL "Enable Python bindings" FORCE)
endif(NOT PYTHONINTERP_FOUND)
endif(ENABLE_python)
@@ -55,7 +55,7 @@
find_package(PythonLibs)
if(NOT PYTHON_LIBRARIES OR NOT PYTHON_INCLUDE_PATH)
message(STATUS "WARNING: "
- "python library and/or header not found. Disabling python bindings")
+ "python library and/or header not found. Disabling python bindings")
set(ENABLE_python OFF CACHE BOOL "Enable Python bindings" FORCE)
endif(NOT PYTHON_LIBRARIES OR NOT PYTHON_INCLUDE_PATH)
endif(ENABLE_python)
@@ -66,12 +66,12 @@
if(HAVE_NUMPY)
# First check for new version of numpy (replaces Numeric)
execute_process(
- COMMAND
- ${PYTHON_EXECUTABLE} -c "import numpy; print numpy.get_include()"
- OUTPUT_VARIABLE NUMPY_INCLUDE_PATH
- RESULT_VARIABLE NUMPY_ERR
- OUTPUT_STRIP_TRAILING_WHITESPACE
- )
+ COMMAND
+ ${PYTHON_EXECUTABLE} -c "import numpy; print numpy.get_include()"
+ OUTPUT_VARIABLE NUMPY_INCLUDE_PATH
+ RESULT_VARIABLE NUMPY_ERR
+ OUTPUT_STRIP_TRAILING_WHITESPACE
+ )
if(NUMPY_ERR)
set(HAVE_NUMPY OFF CACHE BOOL "Use numpy rather than deprecated Numeric" FORCE)
endif(NUMPY_ERR)
@@ -84,38 +84,46 @@
# Check for Python Numeric header in same include path or Numeric
# subdirectory of that path to avoid version mismatch.
find_path(
- NUMERIC_INCLUDE_PATH
- arrayobject.h
- ${PYTHON_INCLUDE_PATH} ${PYTHON_INCLUDE_PATH}/Numeric
- )
+ NUMERIC_INCLUDE_PATH
+ arrayobject.h
+ ${PYTHON_INCLUDE_PATH} ${PYTHON_INCLUDE_PATH}/Numeric
+ )
if (NUMERIC_INCLUDE_PATH)
set(PYTHON_NUMERIC_NAME Numeric CACHE INTERNAL "")
endif (NUMERIC_INCLUDE_PATH)
endif(HAVE_NUMPY)
if(NUMERIC_INCLUDE_PATH)
set(
- PYTHON_INCLUDE_PATH
- ${PYTHON_INCLUDE_PATH} ${NUMERIC_INCLUDE_PATH}
- CACHE INTERNAL "")
+ PYTHON_INCLUDE_PATH
+ ${PYTHON_INCLUDE_PATH} ${NUMERIC_INCLUDE_PATH}
+ CACHE INTERNAL "")
else(NUMERIC_INCLUDE_PATH)
if(HAVE_NUMPY)
message(STATUS "WARNING: "
- "NumPy header not found. Disabling python bindings")
+ "NumPy header not found. Disabling python bindings")
else(HAVE_NUMPY)
message(STATUS "WARNING: "
- "Numeric header not found. Disabling python bindings")
+ "Numeric header not found. Disabling python bindings")
endif(HAVE_NUMPY)
set(ENABLE_python OFF CACHE BOOL "Enable Python bindings" FORCE)
endif(NUMERIC_INCLUDE_PATH)
endif(ENABLE_python AND NOT NUMERIC_INCLUDE_PATH)
+if(ENABLE_python AND HAVE_NUMPY)
+ # This numpy installation bug found by Geoff.
+ option(EXCLUDE_PYTHON_LIBRARIES "Linux temporary workaround for numpy installation bug for non-system Python install prefix" OFF)
+ if(EXCLUDE_PYTHON_LIBRARIES)
+ set(PYTHON_LIBRARIES)
+ endif(EXCLUDE_PYTHON_LIBRARIES)
+endif(ENABLE_python AND HAVE_NUMPY)
+
if(ENABLE_python)
# N.B. This is a nice way to obtain all sorts of python information
# using distutils.
execute_process(
- COMMAND
- ${PYTHON_EXECUTABLE} -c "from distutils import sysconfig; print sysconfig.get_python_lib(1,0,prefix='${CMAKE_INSTALL_EXEC_PREFIX}')"
- OUTPUT_VARIABLE PYTHON_INSTDIR
- OUTPUT_STRIP_TRAILING_WHITESPACE
- )
+ COMMAND
+ ${PYTHON_EXECUTABLE} -c "from distutils import sysconfig; print sysconfig.get_python_lib(1,0,prefix='${CMAKE_INSTALL_EXEC_PREFIX}')"
+ OUTPUT_VARIABLE PYTHON_INSTDIR
+ OUTPUT_STRIP_TRAILING_WHITESPACE
+ )
endif(ENABLE_python)
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|
|
From: <ai...@us...> - 2009-07-27 18:16:52
|
Revision: 10182
http://plplot.svn.sourceforge.net/plplot/?rev=10182&view=rev
Author: airwin
Date: 2009-07-27 18:16:35 +0000 (Mon, 27 Jul 2009)
Log Message:
-----------
For numpy case switch from assuming python's numpy.get_include() will
_always_ find the parent of the numpy directory where arrayobject.h is
found, to using the numpy.get_include() result (with numpy directory
appended) as the first place that find_path searches for arrayobject.h.
This gives the user the option of using CMAKE_INCLUDE_PATH to help find
arrayobject.h for unusual numpy installations.
Modified Paths:
--------------
trunk/cmake/modules/python.cmake
Modified: trunk/cmake/modules/python.cmake
===================================================================
--- trunk/cmake/modules/python.cmake 2009-07-26 23:13:35 UTC (rev 10181)
+++ trunk/cmake/modules/python.cmake 2009-07-27 18:16:35 UTC (rev 10182)
@@ -77,9 +77,14 @@
endif(NUMPY_ERR)
endif(HAVE_NUMPY)
if(HAVE_NUMPY)
- # Set include path to find numpy headers
- set(NUMERIC_INCLUDE_PATH ${NUMPY_INCLUDE_PATH}/numpy CACHE PATH "Path to python Numeric/numpy include files")
- set(PYTHON_NUMERIC_NAME numpy CACHE INTERNAL "")
+ find_path(
+ NUMERIC_INCLUDE_PATH
+ arrayobject.h
+ ${NUMPY_INCLUDE_PATH}/numpy
+ )
+ if(NUMERIC_INCLUDE_PATH)
+ set(PYTHON_NUMERIC_NAME numpy CACHE INTERNAL "")
+ endif(NUMERIC_INCLUDE_PATH)
else(HAVE_NUMPY)
# Check for Python Numeric header in same include path or Numeric
# subdirectory of that path to avoid version mismatch.
@@ -88,7 +93,7 @@
arrayobject.h
${PYTHON_INCLUDE_PATH} ${PYTHON_INCLUDE_PATH}/Numeric
)
- if (NUMERIC_INCLUDE_PATH)
+ if(NUMERIC_INCLUDE_PATH)
set(PYTHON_NUMERIC_NAME Numeric CACHE INTERNAL "")
endif (NUMERIC_INCLUDE_PATH)
endif(HAVE_NUMPY)
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|
|
From: <and...@us...> - 2010-05-18 07:47:43
|
Revision: 11004
http://plplot.svn.sourceforge.net/plplot/?rev=11004&view=rev
Author: andrewross
Date: 2010-05-18 07:47:37 +0000 (Tue, 18 May 2010)
Log Message:
-----------
Add warning that Numeric support is deprecated and will be dropped in a future release of plplot.
Modified Paths:
--------------
trunk/cmake/modules/python.cmake
Modified: trunk/cmake/modules/python.cmake
===================================================================
--- trunk/cmake/modules/python.cmake 2010-05-17 21:10:22 UTC (rev 11003)
+++ trunk/cmake/modules/python.cmake 2010-05-18 07:47:37 UTC (rev 11004)
@@ -135,3 +135,7 @@
OUTPUT_STRIP_TRAILING_WHITESPACE
)
endif(ENABLE_python)
+
+if(ENABLE_python AND NOT HAVE_NUMPY)
+ message(STATUS "WARNING: " "The Numeric extensions for python are deprecated. Support for Numeric will be dropped in a future plplot release. Please switch to numpy.")
+endif(ENABLE_python AND NOT HAVE_NUMPY)
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|
|
From: <and...@us...> - 2010-05-18 15:51:29
|
Revision: 11006
http://plplot.svn.sourceforge.net/plplot/?rev=11006&view=rev
Author: andrewross
Date: 2010-05-18 15:51:23 +0000 (Tue, 18 May 2010)
Log Message:
-----------
Disable python support if numpy is not found and issue warning. Support
for Numeric can (for now) be re-enabled by setting USE_NUMERIC. In due
course support for Numeric will be dropped.
Modified Paths:
--------------
trunk/cmake/modules/python.cmake
Modified: trunk/cmake/modules/python.cmake
===================================================================
--- trunk/cmake/modules/python.cmake 2010-05-18 12:56:14 UTC (rev 11005)
+++ trunk/cmake/modules/python.cmake 2010-05-18 15:51:23 UTC (rev 11006)
@@ -61,6 +61,7 @@
endif(ENABLE_python)
option(HAVE_NUMPY "Use numpy rather than deprecated Numeric" ON)
+option(USE_NUMERIC "Force use of deprecated Numeric" OFF)
if(ENABLE_python)
# NUMERIC_INCLUDE_PATH = path to arrayobject.h for either Numeric or numpy.
@@ -125,6 +126,15 @@
endif(EXCLUDE_PYTHON_LIBRARIES)
endif(ENABLE_python AND HAVE_NUMPY)
+if(ENABLE_python AND NOT HAVE_NUMPY)
+ message(STATUS "WARNING: The Numeric extensions for python are deprecated. "
+ "Support for Numeric will be dropped in a future plplot release. Please switch to numpy.")
+ if(NOT USE_NUMERIC)
+ message(STATUS "Disabling python. If you wish enable Numeric support set USE_NUMERIC.")
+ set(ENABLE_python OFF CACHE BOOL "Enable Python bindings" FORCE)
+ endif(NOT USE_NUMERIC)
+endif(ENABLE_python AND NOT HAVE_NUMPY)
+
if(ENABLE_python)
# N.B. This is a nice way to obtain all sorts of python information
# using distutils.
@@ -135,7 +145,3 @@
OUTPUT_STRIP_TRAILING_WHITESPACE
)
endif(ENABLE_python)
-
-if(ENABLE_python AND NOT HAVE_NUMPY)
- message(STATUS "WARNING: " "The Numeric extensions for python are deprecated. Support for Numeric will be dropped in a future plplot release. Please switch to numpy.")
-endif(ENABLE_python AND NOT HAVE_NUMPY)
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|
|
From: <ai...@us...> - 2010-05-19 06:30:28
|
Revision: 11008
http://plplot.svn.sourceforge.net/plplot/?rev=11008&view=rev
Author: airwin
Date: 2010-05-19 06:30:22 +0000 (Wed, 19 May 2010)
Log Message:
-----------
If USE_NUMERIC is ON, force HAVE_NUMPY OFF immediately. The logic really
only makes sense with this change, and forcing Numeric is what is documented
for the meaning of USE_NUMERIC.
Modified Paths:
--------------
trunk/cmake/modules/python.cmake
Modified: trunk/cmake/modules/python.cmake
===================================================================
--- trunk/cmake/modules/python.cmake 2010-05-18 19:09:05 UTC (rev 11007)
+++ trunk/cmake/modules/python.cmake 2010-05-19 06:30:22 UTC (rev 11008)
@@ -62,6 +62,9 @@
option(HAVE_NUMPY "Use numpy rather than deprecated Numeric" ON)
option(USE_NUMERIC "Force use of deprecated Numeric" OFF)
+if(USE_NUMERIC)
+ set(HAVE_NUMPY OFF CACHE BOOL "Use numpy rather than deprecated Numeric" FORCE)
+endif(USE_NUMERIC)
if(ENABLE_python)
# NUMERIC_INCLUDE_PATH = path to arrayobject.h for either Numeric or numpy.
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|
|
From: <ai...@us...> - 2010-05-19 16:15:33
|
Revision: 11014
http://plplot.svn.sourceforge.net/plplot/?rev=11014&view=rev
Author: airwin
Date: 2010-05-19 16:15:27 +0000 (Wed, 19 May 2010)
Log Message:
-----------
Spelling, USE_NUMERIC ==> FORCE_NUMERIC; and make it easier to switch
to FORCE_NUMERIC after the disable PYTHON WARNING message is issued by
set(NUMERIC_INCLUDE_PATH "NUMERIC_INCLUDE_PATH-NOTFOUND" ...
Modified Paths:
--------------
trunk/cmake/modules/python.cmake
Modified: trunk/cmake/modules/python.cmake
===================================================================
--- trunk/cmake/modules/python.cmake 2010-05-19 10:42:22 UTC (rev 11013)
+++ trunk/cmake/modules/python.cmake 2010-05-19 16:15:27 UTC (rev 11014)
@@ -28,13 +28,13 @@
if(ENABLE_python AND NOT BUILD_SHARED_LIBS)
message(STATUS "WARNING: "
- "Python requires shared libraries. Disabling python bindings")
+ "Python requires shared libraries. Disabling Python bindings")
set(ENABLE_python OFF CACHE BOOL "Enable Python bindings" FORCE)
endif(ENABLE_python AND NOT BUILD_SHARED_LIBS)
if(ENABLE_python AND NOT SWIG_FOUND)
message(STATUS "WARNING: "
- "swig not found. Disabling python bindings")
+ "swig not found. Disabling Python bindings")
set(ENABLE_python OFF CACHE BOOL "Enable Python bindings" FORCE)
endif(ENABLE_python AND NOT SWIG_FOUND)
@@ -43,31 +43,32 @@
find_package(PythonInterp)
if(NOT PYTHONINTERP_FOUND)
message(STATUS "WARNING: "
- "python interpreter not found. Disabling python bindings")
+ "Python interpreter not found. Disabling Python bindings")
set(ENABLE_python OFF CACHE BOOL "Enable Python bindings" FORCE)
endif(NOT PYTHONINTERP_FOUND)
endif(ENABLE_python)
if(ENABLE_python)
# Check for Python libraries which defines
- # PYTHON_LIBRARIES = path to the python library
+ # PYTHON_LIBRARIES = path to the Python library
# PYTHON_INCLUDE_PATH = path to where Python.h is found
find_package(PythonLibs)
if(NOT PYTHON_LIBRARIES OR NOT PYTHON_INCLUDE_PATH)
message(STATUS "WARNING: "
- "python library and/or header not found. Disabling python bindings")
+ "Python library and/or header not found. Disabling Python bindings")
set(ENABLE_python OFF CACHE BOOL "Enable Python bindings" FORCE)
endif(NOT PYTHON_LIBRARIES OR NOT PYTHON_INCLUDE_PATH)
endif(ENABLE_python)
option(HAVE_NUMPY "Use numpy rather than deprecated Numeric" ON)
-option(USE_NUMERIC "Force use of deprecated Numeric" OFF)
-if(USE_NUMERIC)
+option(FORCE_NUMERIC "Force use of deprecated Numeric" OFF)
+if(FORCE_NUMERIC)
set(HAVE_NUMPY OFF CACHE BOOL "Use numpy rather than deprecated Numeric" FORCE)
-endif(USE_NUMERIC)
+endif(FORCE_NUMERIC)
if(ENABLE_python)
# NUMERIC_INCLUDE_PATH = path to arrayobject.h for either Numeric or numpy.
+ #message(STATUS "DEBUG: NUMERIC_INCLUDE_PATH = ${NUMERIC_INCLUDE_PATH}")
if(NOT NUMERIC_INCLUDE_PATH)
if(HAVE_NUMPY)
# First check for new version of numpy (replaces Numeric)
@@ -112,10 +113,10 @@
if(NOT NUMERIC_INCLUDE_PATH)
if(HAVE_NUMPY)
message(STATUS "WARNING: "
- "NumPy header not found. Disabling python bindings")
+ "NumPy header not found. Disabling Python bindings")
else(HAVE_NUMPY)
message(STATUS "WARNING: "
- "Numeric header not found. Disabling python bindings")
+ "Numeric header not found. Disabling Python bindings")
endif(HAVE_NUMPY)
set(ENABLE_python OFF CACHE BOOL "Enable Python bindings" FORCE)
endif(NOT NUMERIC_INCLUDE_PATH)
@@ -130,16 +131,24 @@
endif(ENABLE_python AND HAVE_NUMPY)
if(ENABLE_python AND NOT HAVE_NUMPY)
- message(STATUS "WARNING: The Numeric extensions for python are deprecated. "
- "Support for Numeric will be dropped in a future plplot release. Please switch to numpy.")
- if(NOT USE_NUMERIC)
- message(STATUS "Disabling python. If you wish enable Numeric support set USE_NUMERIC.")
+ message(STATUS
+"WARNING: The Numeric extension for Python is deprecated. Support for
+Numeric will be dropped in a future PLplot release. Please switch to numpy
+by installing that Python extension and/or specifying HAVE_NUMPY ON and
+FORCE_NUMERIC OFF.")
+ if(NOT FORCE_NUMERIC)
+ message(STATUS
+"WARNING: Disabling Python. If you really wish to enable the deprecated
+Numeric support set FORCE_NUMERIC ON.")
set(ENABLE_python OFF CACHE BOOL "Enable Python bindings" FORCE)
- endif(NOT USE_NUMERIC)
+ # Allow further modifications.
+ set(NUMERIC_INCLUDE_PATH "NUMERIC_INCLUDE_PATH-NOTFOUND"
+ CACHE FILEPATH "Path to Numeric or numpy header" FORCE)
+ endif(NOT FORCE_NUMERIC)
endif(ENABLE_python AND NOT HAVE_NUMPY)
if(ENABLE_python)
- # N.B. This is a nice way to obtain all sorts of python information
+ # N.B. This is a nice way to obtain all sorts of Python information
# using distutils.
execute_process(
COMMAND
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|
|
From: <ai...@us...> - 2010-07-21 16:38:43
|
Revision: 11091
http://plplot.svn.sourceforge.net/plplot/?rev=11091&view=rev
Author: airwin
Date: 2010-07-21 16:38:37 +0000 (Wed, 21 Jul 2010)
Log Message:
-----------
Obtain PYTHON_VERSION in a way that works for both python2 and
python3 and which ignores trailing information after the triplet version
number.
Do not allow the user to fiddle with PYTHON_VERSION result variable.
Modified Paths:
--------------
trunk/cmake/modules/python.cmake
Modified: trunk/cmake/modules/python.cmake
===================================================================
--- trunk/cmake/modules/python.cmake 2010-07-16 18:28:37 UTC (rev 11090)
+++ trunk/cmake/modules/python.cmake 2010-07-21 16:38:37 UTC (rev 11091)
@@ -159,17 +159,17 @@
# Get the Python version.
execute_process(
COMMAND
- ${PYTHON_EXECUTABLE} -c "import sys; print sys.version.split()[0]"
- OUTPUT_VARIABLE PYTHON_version_output
+ ${PYTHON_EXECUTABLE} -c "import sys; print('%s.%s.%s' % sys.version_info[0:3])"
+ OUTPUT_VARIABLE PYTHON_VERSION
OUTPUT_STRIP_TRAILING_WHITESPACE
)
- SET(PYTHON_VERSION ${PYTHON_version_output} CACHE STRING "Python version")
+ message(STATUS "DEBUG: PYTHON_VERSION = ${PYTHON_VERSION}")
# Enable plsmem if the Python and Swig versions support it
transform_version(NUMERICAL_SWIG_MINIMUM_VERSION_FOR_PLSMEM "1.3.38")
transform_version(NUMERICAL_PYTHON_MINIMUM_VERSION_FOR_PLSMEM "2.6.0")
transform_version(NUMERICAL_SWIG_VERSION "${SWIG_VERSION}")
- transform_version(NUMERICAL_PYTHON_VERSION "${PYTHON_version_output}")
+ transform_version(NUMERICAL_PYTHON_VERSION "${PYTHON_VERSION}")
SET(PYTHON_HAVE_PYBUFFER OFF)
IF(NUMERICAL_SWIG_MINIMUM_VERSION_FOR_PLSMEM LESS NUMERICAL_SWIG_VERSION)
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|
|
From: <ai...@us...> - 2010-07-21 16:49:29
|
Revision: 11092
http://plplot.svn.sourceforge.net/plplot/?rev=11092&view=rev
Author: airwin
Date: 2010-07-21 16:49:22 +0000 (Wed, 21 Jul 2010)
Log Message:
-----------
Drop "DEBUG: " from PYTHON_VERSION output.
Modified Paths:
--------------
trunk/cmake/modules/python.cmake
Modified: trunk/cmake/modules/python.cmake
===================================================================
--- trunk/cmake/modules/python.cmake 2010-07-21 16:38:37 UTC (rev 11091)
+++ trunk/cmake/modules/python.cmake 2010-07-21 16:49:22 UTC (rev 11092)
@@ -163,7 +163,7 @@
OUTPUT_VARIABLE PYTHON_VERSION
OUTPUT_STRIP_TRAILING_WHITESPACE
)
- message(STATUS "DEBUG: PYTHON_VERSION = ${PYTHON_VERSION}")
+ message(STATUS "PYTHON_VERSION = ${PYTHON_VERSION}")
# Enable plsmem if the Python and Swig versions support it
transform_version(NUMERICAL_SWIG_MINIMUM_VERSION_FOR_PLSMEM "1.3.38")
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|
|
From: <ai...@us...> - 2013-06-25 19:28:38
|
Revision: 12387
http://sourceforge.net/p/plplot/code/12387
Author: airwin
Date: 2013-06-25 19:28:34 +0000 (Tue, 25 Jun 2013)
Log Message:
-----------
Deal properly with case where CMAKE_INSTALL_PREFIX is an empty string.
(This case is typically used to generate binary distribution tarballs.)
Modified Paths:
--------------
trunk/cmake/modules/python.cmake
Modified: trunk/cmake/modules/python.cmake
===================================================================
--- trunk/cmake/modules/python.cmake 2013-06-25 18:49:38 UTC (rev 12386)
+++ trunk/cmake/modules/python.cmake 2013-06-25 19:28:34 UTC (rev 12387)
@@ -111,11 +111,20 @@
endif(ENABLE_python AND HAVE_NUMPY)
if(ENABLE_python)
+ # if CMAKE_INSTALL_EXEC_PREFIX is an empty string, must replace
+ # it with "/" to make PYTHON_INSTALL_TEMPLATE an absolute path to be
+ # consistent with all other installation paths.
+ if(CMAKE_INSTALL_EXEC_PREFIX)
+ set(PYTHON_INSTALL_TEMPLATE "${CMAKE_INSTALL_EXEC_PREFIX}")
+ else(CMAKE_INSTALL_EXEC_PREFIX)
+ set(PYTHON_INSTALL_TEMPLATE "/")
+ endif(CMAKE_INSTALL_EXEC_PREFIX)
+
# N.B. This is a nice way to obtain all sorts of Python information
# using distutils.
execute_process(
COMMAND
- ${PYTHON_EXECUTABLE} -c "from distutils import sysconfig; print sysconfig.get_python_lib(1,0,prefix='${CMAKE_INSTALL_EXEC_PREFIX}')"
+ ${PYTHON_EXECUTABLE} -c "from distutils import sysconfig; print sysconfig.get_python_lib(1,0,prefix='${PYTHON_INSTALL_TEMPLATE}')"
OUTPUT_VARIABLE PYTHON_INSTDIR
OUTPUT_STRIP_TRAILING_WHITESPACE
)
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|