From 24463d452c5ba38ca4e81bfb8d641b5ef0dd3d72 Mon Sep 17 00:00:00 2001 From: Stefan Behnel Date: Sun, 13 Jul 2014 17:25:52 +0200 Subject: [PATCH] globally install "cythonize" script --- cythonize.py | 9 +++++++++ setup.py | 5 +++-- 2 files changed, 12 insertions(+), 2 deletions(-) create mode 100755 cythonize.py diff --git a/cythonize.py b/cythonize.py new file mode 100755 index 00000000000..6b24dc736ff --- /dev/null +++ b/cythonize.py @@ -0,0 +1,9 @@ +#!/usr/bin/env python + +# +# Cython -- enhanced main program +# + +if __name__ == '__main__': + from Cython.Build.Cythonize import main + main() diff --git a/setup.py b/setup.py index bcd00b5747c..fd8e7212a0b 100755 --- a/setup.py +++ b/setup.py @@ -74,14 +74,15 @@ def run(self): setuptools_extra_args['entry_points'] = { 'console_scripts': [ 'cython = Cython.Compiler.Main:setuptools_main', + 'cythonize = Cython.Build.Cythonize:main' ] } scripts = [] else: if os.name == "posix": - scripts = ["bin/cython"] + scripts = ["bin/cython", 'bin/cythonize'] else: - scripts = ["cython.py"] + scripts = ["cython.py", "cythonize.py"] if include_debugger: if 'setuptools' in sys.modules: