Comment 5 for bug 2024461

Revision history for this message
Scott Kitterman (kitterman) wrote :

OK. I went back and looked again. The code is different. 1.0.5 still had support for pyhon2:

try:
    import DNS
    if sys.version_info[0] == 2:
        kw['install_requires'] = ['PyDNS']
    else:
        kw['install_requires'] = ['Py3DNS']
except ImportError: # If PyDNS is not installed, prefer dnspython
    kw['install_requires'] = ['dnspython>=1.16.0']

I'm not sure how to deal with this, but I now agree it needs dealing with. The problem is that the pyproject.toml based build systems have no way to support this. It's one of the reasons I haven't moved dkimpy away from it.