Correct requires invocation for py3dns
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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 <scott@kitterman.com>
|
||||
# Copyright (c) 2011,2012,2018 Scott Kitterman <scott@kitterman.com>
|
||||
|
||||
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
|
||||
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']
|
||||
|
||||
|
||||
Reference in New Issue
Block a user