mail[Wesnoth-commits] r33958 - in /trunk: CMakeLists.txt cmake/FindPythonCustom.cmake


Others Months | Index by Date | Thread Index
>>   [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Header


Content

Posted by koraq on March 21, 2009 - 11:00:
Author: mordante
Date: Sat Mar 21 11:00:04 2009
New Revision: 33958

URL: http://svn.gna.org/viewcvs/wesnoth?rev=33958&view=rev
Log:
Remove the Python support files.

Removed:
    trunk/cmake/FindPythonCustom.cmake
Modified:
    trunk/CMakeLists.txt

Modified: trunk/CMakeLists.txt
URL: 
http://svn.gna.org/viewcvs/wesnoth/trunk/CMakeLists.txt?rev=33958&r1=33957&r2=33958&view=diff
==============================================================================
--- trunk/CMakeLists.txt (original)
+++ trunk/CMakeLists.txt Sat Mar 21 11:00:04 2009
@@ -25,8 +25,6 @@
 # src/gettext.cpp since it includes libintl.h)
 find_package( Gettext REQUIRED )
 find_package( FriBiDi )
-find_package( PythonInterp 2.4 )
-find_package( PythonCustom )
 find_package( X11 )
 
 #needed to get some SDL defines in... (as of rev31694 -D_GNU_SOURCE=1 is 
required!)

Removed: trunk/cmake/FindPythonCustom.cmake
URL: 
http://svn.gna.org/viewcvs/wesnoth/trunk/cmake/FindPythonCustom.cmake?rev=33957&view=auto
==============================================================================
--- trunk/cmake/FindPythonCustom.cmake (original)
+++ trunk/cmake/FindPythonCustom.cmake (removed)
@@ -1,27 +1,0 @@
-if(PYTHON_EXECUTABLE AND NOT PYTHON_LIBRARY)
-  execute_process(COMMAND ${PYTHON_EXECUTABLE} 
-                  -c "import distutils.sysconfig; import os.path; print 
os.path.join(distutils.sysconfig.get_config_var('LIBDIR'), 
distutils.sysconfig.get_config_var('LDLIBRARY'));"
-                  OUTPUT_VARIABLE PYTHON_LIBDIR)
-  string(REPLACE "\n" "" PYTHON_LIBDIR ${PYTHON_LIBDIR})
-
-  if(PYTHON_LIBDIR)
-    execute_process(COMMAND ${PYTHON_EXECUTABLE} 
-                    -c "import distutils.sysconfig; print 
distutils.sysconfig.get_python_inc();"
-                    OUTPUT_VARIABLE PYTHON_INC)
-    string(REPLACE "\n" "" PYTHON_INC ${PYTHON_INC})
-
-    file(TO_CMAKE_PATH ${PYTHON_LIBDIR} PYTHON_LIBRARIES)
-    file(TO_CMAKE_PATH ${PYTHON_INC} PYTHON_INC)
-
-    set(PYTHON_LIBRARY ${PYTHON_LIBRARIES} CACHE FILEPATH "bla")
-    set(PYTHON_INCLUDE_PATH ${PYTHON_INC} CACHE PATH "bla")
-
-  else(PYTHON_LIBDIR)
-    FIND_PACKAGE( PythonLibs 2.4 )
-  endif(PYTHON_LIBDIR)
-
-elseif(NOT PYTHON_EXECUTABLE)
-  FIND_PACKAGE( PythonLibs 2.4 )
-else(PYTHON_EXECUTABLE AND NOT PYTHON_LIBRARY)
-  set(PYTHON_LIBRARIES ${PYTHON_LIBRARY})
-endif(PYTHON_EXECUTABLE AND NOT PYTHON_LIBRARY)




Related Messages


Powered by MHonArc, Updated Sat Mar 21 11:40:33 2009