summaryrefslogtreecommitdiff
path: root/setup.py
diff options
context:
space:
mode:
authorKai Huuhko <kai.huuhko@gmail.com>2015-03-21 10:08:25 +0200
committerKai Huuhko <kai.huuhko@gmail.com>2015-03-21 10:08:25 +0200
commit149f7d12781587a86f231516ef0e169fa1aa1c0d (patch)
tree4605214f300a6fedc6c29501c1e27d84429910fd /setup.py
parent0266db28bdc943cec09d14220b16e257a5e13ff7 (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.
Diffstat (limited to 'setup.py')
-rwxr-xr-xsetup.py6
1 files changed, 4 insertions, 2 deletions
diff --git a/setup.py b/setup.py
index dcc5d12..9aaa607 100755
--- a/setup.py
+++ b/setup.py
@@ -7,6 +7,7 @@ import platform
7import subprocess 7import subprocess
8from distutils.core import setup, Command 8from distutils.core import setup, Command
9from distutils.extension import Extension 9from distutils.extension import Extension
10from distutils.command.build_ext import build_ext
10from distutils.version import StrictVersion, LooseVersion 11from distutils.version import StrictVersion, LooseVersion
11from efl import __version__, __version_info__ as vers 12from 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",