summaryrefslogtreecommitdiff
path: root/network/museek+/museek-python.diff
diff options
context:
space:
mode:
Diffstat (limited to 'network/museek+/museek-python.diff')
-rw-r--r--network/museek+/museek-python.diff44
1 files changed, 44 insertions, 0 deletions
diff --git a/network/museek+/museek-python.diff b/network/museek+/museek-python.diff
new file mode 100644
index 0000000000..844d17d624
--- /dev/null
+++ b/network/museek+/museek-python.diff
@@ -0,0 +1,44 @@
+--- murmur/CMakeLists.txt 2008-09-22 11:49:33.000000000 +0300
++++ murmur/CMakeLists.txt.1 2009-09-01 12:04:34.000000000 +0300
+@@ -25,7 +25,7 @@
+ ${PYMURMUR_FILES}
+ )
+
+-EXECUTE_PROCESS(COMMAND python -c "import sys; import os; print os.path.join('lib', 'python' + str(sys.version_info[0]) + '.' + str(sys.version_info[1]), 'site-packages')" museek OUTPUT_VARIABLE sitepackages OUTPUT_STRIP_TRAILING_WHITESPACE ERROR_VARIABLE error)
++EXECUTE_PROCESS(COMMAND python -c "from distutils.sysconfig import get_python_lib; print get_python_lib(1,0,'')" museek OUTPUT_VARIABLE sitepackages OUTPUT_STRIP_TRAILING_WHITESPACE ERROR_VARIABLE error)
+
+ if (NOT sitepackages OR error)
+ MESSAGE(FATAL_ERROR "Failed to find Python's site-packages directory" ${sitepackages} ${error})
+--- mucous/CMakeLists.txt 2008-09-22 11:49:33.000000000 +0300
++++ mucous/CMakeLists.txt.1 2009-09-01 12:04:55.000000000 +0300
+@@ -28,7 +28,7 @@
+ ${PYMUCOUS_FILES}
+ )
+
+-EXECUTE_PROCESS(COMMAND python -c "import sys; import os; print os.path.join('lib', 'python' + str(sys.version_info[0]) + '.' + str(sys.version_info[1]), 'site-packages')" museek OUTPUT_VARIABLE sitepackages OUTPUT_STRIP_TRAILING_WHITESPACE ERROR_VARIABLE error)
++EXECUTE_PROCESS(COMMAND python -c "from distutils.sysconfig import get_python_lib; print get_python_lib(1,0,'')" museek OUTPUT_VARIABLE sitepackages OUTPUT_STRIP_TRAILING_WHITESPACE ERROR_VARIABLE error)
+
+ if (NOT sitepackages OR error)
+ MESSAGE(FATAL_ERROR "Failed to find Python's site-packages directory" ${sitepackages} ${error})
+--- python-bindings/CMakeLists.txt 2008-09-22 11:49:33.000000000 +0300
++++ python-bindings/CMakeLists.txt.1 2009-09-01 12:04:15.000000000 +0300
+@@ -18,7 +18,7 @@
+ museek/driver.py
+ )
+
+-EXECUTE_PROCESS(COMMAND python -c "import sys; import os; print os.path.join('lib', 'python' + str(sys.version_info[0]) + '.' + str(sys.version_info[1]), 'site-packages')" museek OUTPUT_VARIABLE sitepackages OUTPUT_STRIP_TRAILING_WHITESPACE ERROR_VARIABLE error)
++EXECUTE_PROCESS(COMMAND python -c "from distutils.sysconfig import get_python_lib; print get_python_lib(1,0,'')" museek OUTPUT_VARIABLE sitepackages OUTPUT_STRIP_TRAILING_WHITESPACE ERROR_VARIABLE error)
+
+ if (NOT sitepackages OR error)
+ MESSAGE(FATAL_ERROR "Failed to find Python's site-packages directory" ${sitepackages} ${error})
+--- Mucipher/PyMucipher/CMakeLists.txt 2008-10-07 19:58:27.000000000 +0300
++++ Mucipher/PyMucipher/CMakeLists.txt.1 2009-09-01 12:05:46.000000000 +0300
+@@ -37,7 +37,7 @@
+ ${CMAKE_CURRENT_BINARY_DIR}/mucipherc.py
+ ${CMAKE_CURRENT_BINARY_DIR}/_mucipherc.so
+ )
+-EXECUTE_PROCESS(COMMAND python -c "import sys; import os; print os.path.join('lib', 'python' + str(sys.version_info[0]) + '.' + str(sys.version_info[1]), 'site-packages')" museek OUTPUT_VARIABLE sitepackages OUTPUT_STRIP_TRAILING_WHITESPACE ERROR_VARIABLE error)
++EXECUTE_PROCESS(COMMAND python -c "from distutils.sysconfig import get_python_lib; print get_python_lib(1,0,'')" museek OUTPUT_VARIABLE sitepackages OUTPUT_STRIP_TRAILING_WHITESPACE ERROR_VARIABLE error)
+
+ if (NOT sitepackages OR error)
+ MESSAGE(FATAL_ERROR "Failed to find Python's site-packages directory" ${sitepackages} ${error})