summaryrefslogtreecommitdiff
path: root/setup.py
diff options
context:
space:
mode:
authorDave Andreoli <dave@gurumeditation.it>2015-01-02 10:29:27 +0100
committerDave Andreoli <dave@gurumeditation.it>2015-01-02 10:29:27 +0100
commit03f2f286e22ddf4fc94f14124d7c608610495044 (patch)
treec8ebc9a33a9289361e65c4410b44df7ffae99694 /setup.py
parentc4bbbcf3dcb9a57266aade74f1ddcddc41175e29 (diff)
setup.py: no need to use cython build_ext
Seems to me that cythonize() is doing the same work, need some testing
Diffstat (limited to 'setup.py')
-rwxr-xr-xsetup.py4
1 files changed, 0 insertions, 4 deletions
diff --git a/setup.py b/setup.py
index b2e1b96..be093fe 100755
--- a/setup.py
+++ b/setup.py
@@ -103,13 +103,11 @@ def pkg_config(name, require, min_vers=None):
103# === cython or pre-generated c files === 103# === cython or pre-generated c files ===
104if os.getenv("DISABLE_CYTHON"): 104if os.getenv("DISABLE_CYTHON"):
105 module_suffix = ".c" 105 module_suffix = ".c"
106 from distutils.command.build_ext import build_ext
107 106
108 def cythonize(modules, *args, **kwargs): 107 def cythonize(modules, *args, **kwargs):
109 return modules 108 return modules
110else: 109else:
111 try: 110 try:
112 from Cython.Distutils import build_ext
113 from Cython.Build import cythonize 111 from Cython.Build import cythonize
114 import Cython.Compiler.Options 112 import Cython.Compiler.Options
115 except ImportError: 113 except ImportError:
@@ -117,7 +115,6 @@ else:
117 raise SystemExit("Requires Cython >= %s (http://cython.org/)" % ( 115 raise SystemExit("Requires Cython >= %s (http://cython.org/)" % (
118 CYTHON_MIN_VERSION)) 116 CYTHON_MIN_VERSION))
119 module_suffix = ".c" 117 module_suffix = ".c"
120 from distutils.command.build_ext import build_ext
121 118
122 def cythonize(modules, *args, **kwargs): 119 def cythonize(modules, *args, **kwargs):
123 return modules 120 return modules
@@ -444,7 +441,6 @@ setup(
444 'Topic :: Software Development :: Widget Sets', 441 'Topic :: Software Development :: Widget Sets',
445 ], 442 ],
446 cmdclass={ 443 cmdclass={
447 'build_ext': build_ext,
448 'build_doc': BuildDoc, 444 'build_doc': BuildDoc,
449 'clean_generated_files': CleanGenerated 445 'clean_generated_files': CleanGenerated
450 }, 446 },