[med-svn] [Git][med-team/librcsb-core-wrapper][master] 2 commits: use pybuild

Michael R. Crusoe gitlab at salsa.debian.org
Sat Dec 14 20:42:29 GMT 2019



Michael R. Crusoe pushed to branch master at Debian Med / librcsb-core-wrapper


Commits:
47d0bd8c by Michael R. Crusoe at 2019-12-14T17:19:29Z
use pybuild

- - - - -
225e8a12 by Michael R. Crusoe at 2019-12-14T20:42:08Z
PARTIAL FIX: improve py3 compat

- - - - -


2 changed files:

- debian/patches/python3.patch
- debian/rules


Changes:

=====================================
debian/patches/python3.patch
=====================================
@@ -1,6 +1,6 @@
---- a/Makefile
-+++ b/Makefile
-@@ -59,9 +59,9 @@ compile_osx:
+--- librcsb-core-wrapper.orig/Makefile
++++ librcsb-core-wrapper/Makefile
+@@ -59,9 +59,9 @@
  compile_lnx_38:
  	@sh -c 'cd ./$(UTIL_MODULE); \
           export PIC=-fPIC;  \
@@ -12,7 +12,7 @@
           export WWPDB_BOOST_INC=/apps/boost_1_38_0/include/boost-1_38; \
           export WWPDB_BOOST_PYTHON_LIB_DIR=/apps/boost_1_38_0/lib; \
           export WWPDB_BOOST_PYTHON_LIB=boost_python-gcc41-mt-1_38; \
-@@ -73,9 +73,9 @@ compile_lnx_38:
+@@ -73,9 +73,9 @@
  compile_lnx_41:
  	@sh -c 'cd ./$(UTIL_MODULE); \
          export PIC=-fPIC; \
@@ -24,7 +24,7 @@
          export WWPDB_BOOST_INC=/apps/boost/include/boost-1_41; \
          export WWPDB_BOOST_PYTHON_LIB_DIR=/apps/boost/lib; \
          export WWPDB_BOOST_PYTHON_LIB=boost_python-gcc41-mt-1_41; \
-@@ -88,9 +88,9 @@ compile_lnx_41:
+@@ -88,9 +88,9 @@
  compile_wwpdb_py27:
  	@sh -c 'cd ./$(UTIL_MODULE); \
          export PIC=-fPIC; \
@@ -36,3 +36,24 @@
          export WWPDB_BOOST_INC=$(TOP_INSTALL_DIR)/include; \
          export WWPDB_BOOST_PYTHON_LIB_DIR=$(TOP_INSTALL_DIR)/lib; \
          export WWPDB_BOOST_PYTHON_LIB=boost_python-mt; \
+--- librcsb-core-wrapper.orig/cctbx/scitbx/boost_python/container_conversions.h
++++ librcsb-core-wrapper/cctbx/scitbx/boost_python/container_conversions.h
+@@ -150,13 +150,12 @@
+             || PyTuple_Check(obj_ptr)
+             || PyIter_Check(obj_ptr)
+             || PyRange_Check(obj_ptr)
+-            || (   !PyString_Check(obj_ptr)
+-                && !PyUnicode_Check(obj_ptr)
+-                && (   obj_ptr->ob_type == 0
+-                    || obj_ptr->ob_type->ob_type == 0
+-                    || obj_ptr->ob_type->ob_type->tp_name == 0
++            || (   !PyUnicode_Check(obj_ptr)
++                && (   Py_TYPE(obj_ptr) == 0
++                    || Py_TYPE(Py_TYPE(obj_ptr)) == 0
++                    || Py_TYPE(Py_TYPE(obj_ptr))->tp_name == 0
+                     || std::strcmp(
+-                         obj_ptr->ob_type->ob_type->tp_name,
++                         Py_TYPE(Py_TYPE(obj_ptr))->tp_name,
+                          "Boost.Python.class") != 0)
+                 && PyObject_HasAttrString(obj_ptr, "__len__")
+                 && PyObject_HasAttrString(obj_ptr, "__getitem__")))) return 0;


=====================================
debian/rules
=====================================
@@ -23,7 +23,7 @@ override_dh_auto_build-nopy:
 	$(MAKE) doc
 
 override_dh_auto_build-py: override_dh_auto_build-nopy
-	dh_auto_build --sourcedirectory=wrapper/python
+	dh_auto_build --sourcedirectory=wrapper/python --buildsystem=pybuild
 
 override_dh_auto_install: override_dh_auto_install-nopy override_dh_auto_install-py
 
@@ -31,7 +31,7 @@ override_dh_auto_install-nopy:
 	# lkajan: there is no real install mechanism in the upstream sources
 
 override_dh_auto_install-py:
-	dh_auto_install --sourcedirectory=wrapper/python
+	dh_auto_install --sourcedirectory=wrapper/python --buildsystem=pybuild
 
 override_dh_installdocs:
 	dh_installdocs



View it on GitLab: https://salsa.debian.org/med-team/librcsb-core-wrapper/compare/a045d67df6ff97a8a64a15626530ce05e3798e99...225e8a12d6891db989af3bc25882ab74fd0f40a3

-- 
View it on GitLab: https://salsa.debian.org/med-team/librcsb-core-wrapper/compare/a045d67df6ff97a8a64a15626530ce05e3798e99...225e8a12d6891db989af3bc25882ab74fd0f40a3
You're receiving this email because of your account on salsa.debian.org.


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://alioth-lists.debian.net/pipermail/debian-med-commit/attachments/20191214/8642b003/attachment-0001.html>


More information about the debian-med-commit mailing list