summaryrefslogtreecommitdiff
path: root/setup.py
diff options
context:
space:
mode:
Diffstat (limited to 'setup.py')
-rwxr-xr-xsetup.py16
1 files changed, 9 insertions, 7 deletions
diff --git a/setup.py b/setup.py
index 42e794b..c91c719 100755
--- a/setup.py
+++ b/setup.py
@@ -22,18 +22,20 @@ from setuptools import setup
try:
- sys.argv.remove("--cython-compile")
+ sys.argv.remove("--cython-compile")
except ValueError:
- compile_cython = False
+ compile_cython = False
else:
compile_cython = True
from Cython.Build import cythonize
- ext_modules = cythonize(['dns/*.py', 'dns/rdtypes/*.py', 'dns/rdtypes/*/*.py'],
- language_level='3')
+
+ ext_modules = cythonize(
+ ["dns/*.py", "dns/rdtypes/*.py", "dns/rdtypes/*/*.py"], language_level="3"
+ )
kwargs = {
- 'ext_modules': ext_modules if compile_cython else None,
- 'zip_safe': False if compile_cython else None,
- }
+ "ext_modules": ext_modules if compile_cython else None,
+ "zip_safe": False if compile_cython else None,
+}
setup(**kwargs)