diff options
author | Kai Huuhko <kai.huuhko@gmail.com> | 2015-03-21 10:08:25 +0200 |
---|---|---|
committer | Kai Huuhko <kai.huuhko@gmail.com> | 2015-03-21 10:08:25 +0200 |
commit | 149f7d12781587a86f231516ef0e169fa1aa1c0d (patch) | |
tree | 4605214f300a6fedc6c29501c1e27d84429910fd | |
parent | 0266db28bdc943cec09d14220b16e257a5e13ff7 (diff) |
setup.py: Fix Cython specific options
**SPANK SPANK SPANK!!** Dave has been naughty.
build_ext must be imported from Cython in order for options like
--cython-dbg to be understood by the setup script.
-rwxr-xr-x | setup.py | 6 |
1 files changed, 4 insertions, 2 deletions
@@ -7,6 +7,7 @@ import platform | |||
7 | import subprocess | 7 | import subprocess |
8 | from distutils.core import setup, Command | 8 | from distutils.core import setup, Command |
9 | from distutils.extension import Extension | 9 | from distutils.extension import Extension |
10 | from distutils.command.build_ext import build_ext | ||
10 | from distutils.version import StrictVersion, LooseVersion | 11 | from distutils.version import StrictVersion, LooseVersion |
11 | from efl import __version__, __version_info__ as vers | 12 | from efl import __version__, __version_info__ as vers |
12 | 13 | ||
@@ -216,7 +217,7 @@ if set(("build", "build_ext", "install", "bdist", "sdist")) & set(sys.argv): | |||
216 | if USE_CYTHON: | 217 | if USE_CYTHON: |
217 | # check if cython is installed | 218 | # check if cython is installed |
218 | try: | 219 | try: |
219 | from Cython.Distutils import Extension | 220 | from Cython.Distutils import Extension, build_ext |
220 | from Cython.Build import cythonize | 221 | from Cython.Build import cythonize |
221 | import Cython.Compiler.Options | 222 | import Cython.Compiler.Options |
222 | except ImportError: | 223 | except ImportError: |
@@ -515,6 +516,7 @@ setup( | |||
515 | 'build_doc': BuildDoc, | 516 | 'build_doc': BuildDoc, |
516 | 'clean_generated_files': CleanGenerated, | 517 | 'clean_generated_files': CleanGenerated, |
517 | 'uninstall': Uninstall, | 518 | 'uninstall': Uninstall, |
519 | 'build_ext': build_ext, | ||
518 | }, | 520 | }, |
519 | command_options={ | 521 | command_options={ |
520 | 'build_doc': { | 522 | 'build_doc': { |
@@ -523,7 +525,7 @@ setup( | |||
523 | }, | 525 | }, |
524 | 'install': { | 526 | 'install': { |
525 | 'record': ('setup.py', RECORD_FILE), | 527 | 'record': ('setup.py', RECORD_FILE), |
526 | } | 528 | }, |
527 | }, | 529 | }, |
528 | packages=packages, | 530 | packages=packages, |
529 | ext_package="efl", | 531 | ext_package="efl", |