Skip to content

Commit

Permalink
globally install "cythonize" script
Browse files Browse the repository at this point in the history
  • Loading branch information
scoder committed Jul 13, 2014
1 parent dbdfe3c commit 24463d4
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 2 deletions.
9 changes: 9 additions & 0 deletions cythonize.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
#!/usr/bin/env python

#
# Cython -- enhanced main program
#

if __name__ == '__main__':
from Cython.Build.Cythonize import main
main()
5 changes: 3 additions & 2 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit 24463d4

Please sign in to comment.