d/p/python3.patch: Drop patch (applied upstream)
authorRafael Laboissière <rafael@debian.org>
Fri, 10 Dec 2021 18:19:00 +0000 (15:19 -0300)
committerRafael Laboissière <rafael@debian.org>
Fri, 10 Dec 2021 18:19:00 +0000 (15:19 -0300)
debian/patches/python3.patch [deleted file]
debian/patches/series

diff --git a/debian/patches/python3.patch b/debian/patches/python3.patch
deleted file mode 100644 (file)
index 7943839..0000000
+++ /dev/null
@@ -1,67 +0,0 @@
-Description: Provide support for python3 interface
-Author: Dimitrios Eftaxiopoulos <eftaxi12@otenet.gr>
-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.
index 25c7c1c29657c70ffd460533dcdbcfe3a7423f26..879efc60a8a4db097640c5d520443f2b9e7c3eb7 100644 (file)
@@ -1,2 +1 @@
-python3.patch
 CMakeLists.patch