diff --git a/ChangeLog b/ChangeLog index e3bf701..131aa8b 100644 --- a/ChangeLog +++ b/ChangeLog @@ -7,6 +7,7 @@ - Fix deprecation warnings in test asserts (Daniel Hahler) - Correctly limit try/except for imports to import errors (Daniel Hahler) - Don't error out in Python 3 if include headers is string (LP: #1776775) + - Correct requires invocation for py3dns 2018-05-18 Version 0.8.0 - Change from distutils to setuptools with entry points because it's the diff --git a/setup.py b/setup.py index 833f09b..aaa2122 100644 --- a/setup.py +++ b/setup.py @@ -19,17 +19,21 @@ # Copyright (c) 2008 Greg Hewgill http://hewgill.com # # This has been modified from the original software. -# Copyright (c) 2011,2012 Scott Kitterman +# Copyright (c) 2011,2012,2018 Scott Kitterman from setuptools import setup import os +import sys version = "0.8.1" kw = {} # Work-around for lack of 'or' requires in setuptools. try: import DNS - kw['install_requires'] = ['PyDNS'] + 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']