it seems that the problem originates inside pycentral: dh_pycentral calls pycentral once for each binary package (two of which are python-pkg-resources and python3-pkg-resources), but in line 759 (first line of add_shared_links, used in ActionDebhelper), pycentral uses the source version (self.sversion_field, which includes the inappropriate 3.1 reference) and not the binary package version (self.version_field, which is at that point unusable because it includes substvars).
lacking knowledge of the intended behavior of pycentral, i can't do anything more here, but given the maintainer of python-pkg-resources is the same as for python-central, i am confident this can be solved easily. -- Often I must speak other then I think. That is called diplomacy. -- Stilgar
signature.asc
Description: Digital signature