From: Rafael Laboissière Date: Fri, 10 Dec 2021 18:19:00 +0000 (-0300) Subject: d/p/python3.patch: Drop patch (applied upstream) X-Git-Tag: archive/raspbian/2.5-2+rpi1^2~25 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=caa8ee2e8c986f84fd7d4c31b22f631249569da5;p=mathgl.git d/p/python3.patch: Drop patch (applied upstream) --- diff --git a/debian/patches/python3.patch b/debian/patches/python3.patch deleted file mode 100644 index 7943839..0000000 --- a/debian/patches/python3.patch +++ /dev/null @@ -1,67 +0,0 @@ -Description: Provide support for python3 interface -Author: Dimitrios Eftaxiopoulos -Forwarded: not-needed -Last-Update: 2019-12-08 - ---- a/lang/CMakeLists.txt -+++ b/lang/CMakeLists.txt -@@ -18,17 +18,17 @@ - INCLUDE(${SWIG_USE_FILE}) - - if(enable-python) -- set(Python_ADDITIONAL_VERSIONS 2.7) -- FIND_PACKAGE(PythonInterp) -+ set(Python_ADDITIONAL_VERSIONS ${PY3VERSION_DOTTED}) -+ FIND_PACKAGE(PythonInterp ${PY3VERSION_DOTTED} REQUIRED) - if(NOT PYTHONINTERP_FOUND) - message(SEND_ERROR "Couldn't find python interpreter.") - endif(NOT PYTHONINTERP_FOUND) -- FIND_PACKAGE(PythonLibs) -+ FIND_PACKAGE(PythonLibs ${PY3VERSION_DOTTED} REQUIRED) - if(NOT PYTHONLIBS_FOUND) - message(SEND_ERROR "Couldn't find python development libraries.") - endif(NOT PYTHONLIBS_FOUND) - execute_process( -- COMMAND ${PYTHON_EXECUTABLE} -c "import numpy; print numpy.get_include()" -+ COMMAND ${PYTHON_EXECUTABLE} -c "import numpy; print (numpy.get_include())" - OUTPUT_VARIABLE NUMPY_INCLUDE_PATH - RESULT_VARIABLE NUMPY_ERR - OUTPUT_STRIP_TRAILING_WHITESPACE -@@ -39,11 +39,11 @@ - - include_directories(${PYTHON_INCLUDE_DIR} ${NUMPY_INCLUDE_PATH}) - execute_process( -- COMMAND ${PYTHON_EXECUTABLE} -c "from distutils.sysconfig import get_python_lib; print get_python_lib(prefix='${CMAKE_INSTALL_PREFIX}')" -+ COMMAND ${PYTHON_EXECUTABLE} -c "from distutils.sysconfig import get_python_lib; print (get_python_lib(prefix='${CMAKE_INSTALL_PREFIX}'))" - OUTPUT_VARIABLE MGL_PYTHON_SITE_PACKAGES - OUTPUT_STRIP_TRAILING_WHITESPACE) - set(SWIG_MODULE_mathgl_EXTRA_DEPS numpy.i ${src_imp_dep}) -- if(${CMAKE_VERSION} VERSION_LESS "3.8.0") -+ if(${CMAKE_VERSION} VERSION_LESS "3.8.0") - SWIG_ADD_MODULE(mathgl python mathgl.i) - else(${CMAKE_VERSION} VERSION_LESS "3.8.0") - SWIG_ADD_LIBRARY(mathgl LANGUAGE python SOURCES mathgl.i) -@@ -58,7 +58,7 @@ - ) - add_custom_target(mgl_python_module ALL DEPENDS _mathgl mathgl.pyc) - -- install(FILES ${MathGL2_BINARY_DIR}/lang/mathgl.py ${MathGL2_BINARY_DIR}/lang/mathgl.pyc DESTINATION ${MGL_PYTHON_SITE_PACKAGES}) -+ install(FILES ${MathGL2_BINARY_DIR}/lang/mathgl.py ${MathGL2_BINARY_DIR}/lang/__pycache__/mathgl.cpython-${PY3VERSION_NODOT}.pyc DESTINATION ${MGL_PYTHON_SITE_PACKAGES}/__pycache__) - install (TARGETS _mathgl LIBRARY DESTINATION ${MGL_PYTHON_SITE_PACKAGES}) - set(mgl_clean_files ${mgl_clean_files} mathgl.py) - endif(enable-python) ---- a/lang/numpy.i -+++ b/lang/numpy.i -@@ -107,11 +107,9 @@ - if (PyDict_Check( py_obj)) return "dict" ; - if (PyList_Check( py_obj)) return "list" ; - if (PyTuple_Check( py_obj)) return "tuple" ; -- if (PyFile_Check( py_obj)) return "file" ; - if (PyModule_Check( py_obj)) return "module" ; -- if (PyInstance_Check(py_obj)) return "instance" ; - -- return "unknow type"; -+ return "unknown type"; - } - - /* Given a NumPy typecode, return a string describing the type. diff --git a/debian/patches/series b/debian/patches/series index 25c7c1c..879efc6 100644 --- a/debian/patches/series +++ b/debian/patches/series @@ -1,2 +1 @@ -python3.patch CMakeLists.patch