Skip to content
Commits on Source (2)
pylibtiff for Debian
--------------------
In Debian the bittools extension has been totally disabled because it
seems to be broken on many architectures.
Use bitarray package is used instead of bittools as backend in the
libtiff.lzw module.
-- Antonio Valentino <antonio.valentino@tiscali.it> Sun, 30 Dec 2018 11:21:45 +0100
pylibtiff (0.4.2-2) UNRELEASED; urgency=medium
pylibtiff (0.4.2-2) unstable; urgency=medium
* debian/patches
- new 0004-Improve-tiff.h-detection.patch: fix detection of the
tiff.h header on arm* and kfreebsd*
* Disable bittools extension: it is broken in many platforms.
Use bitarray instead as backend in the libtiff.lzw module.
-- Antonio Valentino <antonio.valentino@tiscali.it> Wed, 26 Dec 2018 19:42:58 +0000
-- Antonio Valentino <antonio.valentino@tiscali.it> Sun, 30 Dec 2018 10:35:29 +0000
pylibtiff (0.4.2-1) unstable; urgency=medium
......
......@@ -23,6 +23,7 @@ Homepage: https://github.com/pearu/pylibtiff
Package: python-libtiff
Architecture: any
Depends: libtiff5,
python-bitarray,
${python:Depends},
${shlibs:Depends},
${misc:Depends}
......@@ -54,6 +55,7 @@ Description: wrapper to the libtiff library to Python using ctypes
Package: python3-libtiff
Architecture: any
Depends: libtiff5,
python3-bitarray,
${python3:Depends},
${shlibs:Depends},
${misc:Depends}
......
From: Antonio Valentino <antonio.valentino@tiscali.it>
Date: Sun, 30 Dec 2018 11:15:42 +0100
Subject: Disable bittools extension
---
libtiff/lzw.py | 2 +-
setup.py | 8 ++++----
2 files changed, 5 insertions(+), 5 deletions(-)
diff --git a/libtiff/lzw.py b/libtiff/lzw.py
index 9e486b6..1d5736d 100644
--- a/libtiff/lzw.py
+++ b/libtiff/lzw.py
@@ -7,7 +7,7 @@ This module is obsolete, use tif_lzw extension module instead.
import numpy
-default_backend='bittools'
+default_backend='bitarray'
#default_backend='bittools'
if default_backend=='bitarray':
diff --git a/setup.py b/setup.py
index b1dec57..27581e5 100644
--- a/setup.py
+++ b/setup.py
@@ -20,7 +20,7 @@ MICRO = 2
ISRELEASED = True
VERSION = '%d.%d.%d' % (MAJOR, MINOR, MICRO)
-if os.path.exists('MANIFEST'):
+if os.path.exists('MANIFEST'):
os.remove('MANIFEST')
@@ -76,8 +76,8 @@ def configuration(parent_package='', top_path=None):
if __name__ == '__main__':
from numpy.distutils.core import setup, Extension
- bittools_mod = Extension('bittools',
- sources=['libtiff/src/bittools.c'])
+ #bittools_mod = Extension('bittools',
+ # sources=['libtiff/src/bittools.c'])
tif_lzw_mod = Extension('tif_lzw',
sources=['libtiff/src/tif_lzw.c'])
@@ -105,5 +105,5 @@ PyLibTiff? is a Python package that provides the following modules:
# packages = ['libtiff'],
# package_dir = {'libtiff': 'libtiff'},
configuration=configuration,
- ext_modules=[bittools_mod, tif_lzw_mod], requires=['numpy']
+ ext_modules=[tif_lzw_mod], requires=['numpy']
)
......@@ -2,3 +2,4 @@
0002-ctypes.patch
0003-fix-future-division.patch
0004-Improve-tiff.h-detection.patch
0005-Disable-bittools-extension.patch
......@@ -3,7 +3,7 @@
export DEB_BUILD_MAINT_OPTIONS = hardening=+bindnow
export PYBUILD_NAME=libtiff
export PYBUILD_TEST_PYTEST=1
export PYBUILD_DISABLE=test
%:
dh $@ --with python2,python3 --buildsystem=pybuild
......