[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#1030736: pytorch-vision: hard-coded dependency on python3.10



Source: pytorch-vision
Version: 0.14.1-1
Followup-For: Bug #1030736

For this version, the control file contains[1] 'X-Python3-Version: 3.10, 3.11'.

Adding that configuration to the *dh-python* source package (as a test), the
'Depends' entry for the resulting .deb file contains:

  Depends: python3.10, python3:any, python3-distutils | python3 (<< 3.6.5~rc1-1)

(note the hardcoded py3.10 dep)


Reconfiguring to use 'X-Python3-Version: >= 3.10, <= 3.11', that becomes:

  Depends: python3:any (>= 3.10~), python3-distutils | python3 (<< 3.6.5~rc1-1)

That's probably closer to the intended behaviour here?


Please note: ideally I should have tested that configuration change against the
pytorch-vision source package.  I wasn't immediately able to build that from
source, so I decided to experiment using a quicker-to-build package.  As a
result, some caution about my findings would be worthwhile.

[1] - https://salsa.debian.org/deeplearning-team/pytorch-vision/-/blob/437f50d1d8f15cdcef7e7b670036322031c29e4c/debian/control#L39


Reply to: