On 4/17/20 10:08 AM, lkcl wrote:
Package: python3-gmpy2
Version: 2.1.0~b4-1+b1
Severity: important

(please ignore debian release information below, a rolling release
is used)

python3.7 is being used, here (not python3.8)

however python3-gmpy2 has *only* been compiled for python3.8.
this is severely exclusionary, forces people to hard-upgrade to a
set and specific version of python, and very bad practice.

this bugreport's severity might need to be upgraded.

most "good" python packages compile multiple versions not just
for python2 and python3, they compile for multiple versions *of*
python2 (or, used to) and python3.

this package should cookie-cut such other packages, there are plenty
that do this.



Hi,

It appears that python3.7 has been removed from the python3-all list of supported versions (see the changelog for python3-all and for dh-python). As a result, I'm actually seeing numpy (which you cited as an example) no longer working with python3.7 either. You can test this by doing cowbuilder, installing python3.7 and python3-numpy, and then trying to import numpy with python3.7. It's failing for me.

Looking at the pybuild code and manpage, it appears it already handles exactly this problem and should be doing the right things without extra work.

From "man pybuild":

------------------------------------------------------------------------
DEBHELPER COMMAND SEQUENCER INTEGRATION
       • build depend on dh-python,

• build depend on all supported Python interpreters, pybuild will use it to create a list of interpreters to build for. Rec‐
         ognized dependencies:

• python3-all-dev - for Python extensions that work with Python 3.X interpreters,

• python3-all-dbg - as above, add this one if you're building -dbg packages,
-------------------------------------------------------------------------

python3-gmpy2 already build-depends on python3-all-dev, which should be sufficient for compiling for all interpreters. The fact that python3.7 is no longer a supported version is a separate issue and not specific to this package.

I've CC'ed Piotr Ożarowski. Piotr, please let me know if I'm misunderstanding something here or need to take a different action.

Reply via email to