tag 689923 + patch
thanks

Le Tue, 09 Oct 2012 20:53:11 +0200,
Ludovic Rousseau <ludovic.rouss...@gmail.com> a écrit :

> Le 07/10/12 21:43, Laurent Bigonville a écrit :
> > Package: python-pyscard
> > Version: 1.6.12.1-3
> > Severity: normal
> >
> > Hi,
> >
> > python-pyscard is linked against libpython. This is considered a bad
> > habit in Debian as it pulling extra dependencies when installing.
> >
> > Please drop the explicit linking against libpython
> 
> python-pyscard is, in part, a binary library, not just Python code.
> 
> The Debian package uses:
> Depends: ${shlibs:Depends}, ${misc:Depends}, ${python:Depends}
> 
> So the libpython2.6 (>= 2.6), libpython2.7 (>= 2.7) are automatically
> added.
> 
> python-pyscard is build for every Python 2.x version supported by
> Debian.
[...]
> 
> How do you propose I solve the problem?

See my attached patch.

The python interpreter itself is already statically linked against
libpython, linking the extension to it is creating unneeded
dependencies and might increase the memory usage.

Cheers

Laurent Bigonville

--- a/setup.py
+++ b/setup.py
@@ -127,7 +127,7 @@ else:
     platform__cc_defines = [('PCSCLITE', '1')]
     platform_swig_opts = ['-DPCSCLITE']
     platform_sources = []
-    platform_libraries = ["python%d.%d" % sys.version_info[:2]]
+    platform_libraries = []
     platform_include_dirs = ['/usr/include/PCSC']
     platform_extra_compile_args = []    # ['-ggdb', '-O0']
     platform_extra_link_args = []   # ['-ggdb']

Reply via email to