Skip to content
Commits on Source (5)
......@@ -5,4 +5,3 @@ files
*.substvars
python-freecontact
.pc
debian/patches
......@@ -10,8 +10,8 @@ Build-Depends: debhelper (>= 11~),
libboost-python-dev,
libfreecontact-dev,
python-all-dev,
# python3-all-dev
Standards-Version: 4.1.4
python3-all-dev
Standards-Version: 4.2.1
Vcs-Browser: https://salsa.debian.org/med-team/python-freecontact
Vcs-Git: https://salsa.debian.org/med-team/python-freecontact.git
Homepage: https://rostlab.org/owiki/index.php/FreeContact
......@@ -26,12 +26,12 @@ Description: fast protein contact predictor - binding for Python
.
This package contains the Python binding.
#Package: python3-freecontact
#Architecture: any
#Depends: ${misc:Depends},
# ${python3:Depends},
# ${shlibs:Depends}
#Description: fast protein contact predictor - binding for Python3
# ${Description}
# .
# This package contains the Python3 binding.
Package: python3-freecontact
Architecture: any
Depends: ${misc:Depends},
${python3:Depends},
${shlibs:Depends}
Description: fast protein contact predictor - binding for Python3
${Description}
.
This package contains the Python3 binding.
Format: http://www.debian.org/doc/packaging-manuals/copyright-format/1.0/
Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/
Upstream-Name: python-freecontact
Upstream-Contact: Laszlo Kajan <lkajan@rostlab.org>
Source: ftp://rostlab.org/free/
......
From: Alex Mestiashvili <mestia@debian.org>
Description: properly link to libboost_python3X versions python3 module
--- python-freecontact.orig/setup.py
+++ python-freecontact/setup.py
@@ -17,6 +17,10 @@
#
from distutils.core import setup, Extension
from glob import glob
+import sys
+PY3K=(sys.version_info[0]==3)
+
+boost_py_bindings='boost_python3%d'%(sys.version_info[1]) if PY3K else 'boost_python'
setup( name = 'python-freecontact',
version = '1.1',
@@ -30,7 +34,7 @@
ext_modules = [Extension(
name = 'freecontact',
sources = glob('src/*.cpp'),
- libraries = ['freecontact', 'boost_python'])]
+ libraries = ['freecontact', boost_py_bindings])]
)
# vim:et:ts=4:ai:
#!/usr/bin/make -f
#export DH_VERBOSE=1
export DH_VERBOSE=1
export DEB_BUILD_MAINT_OPTIONS=hardening=+all
......@@ -8,15 +8,11 @@ export PYBUILD_NAME = freecontact
Description := $(shell sed -e ':a; N; s/\n/$${Newline}/; ta' < debian/Description)
%:
dh $@ --buildsystem=pybuild --with python2 # ,python3
dh $@ --with python2,python3 --buildsystem=pybuild --builddirectory=$(CURDIR)/builddir
override_dh_gencontrol:
dh_gencontrol -- '-VDescription=$(Description)'
PYVER = $(shell echo -e 'import sys\nprint(str(sys.version_info.major)+"."+str(sys.version_info.minor))' | /usr/bin/python)
# PY3VER = $(shell echo -e 'import sys\nprint(str(sys.version_info.major)+"."+str(sys.version_info.minor))' | /usr/bin/python3)
PYVERBDIR = $(wildcard ./build/lib.*-2.7)
override_dh_auto_test:
PYBUILD_SYSTEM=custom \
PYBUILD_TEST_ARGS="{interpreter} $(CURDIR)/test/test01.py" \
......