Skip to content

Commit

Permalink
cythonize
Browse files Browse the repository at this point in the history
  • Loading branch information
rokujyouhitoma committed Dec 6, 2015
1 parent f92248f commit 0ec0354
Show file tree
Hide file tree
Showing 4 changed files with 41 additions and 0 deletions.
4 changes: 4 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -8,3 +8,7 @@ dist
.coverage
build/
.noseids

# for cytnon
*.c
*.so
2 changes: 2 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -77,5 +77,7 @@ clean:
@${RM} -r -f dist
@${RM} -r -f *.egg-info
@${RM} -r -f docs/_build
@find . -name "*.c" -exec rm {} \;
@find . -name "*.so" -exec rm {} \;

.PHONY: docs
30 changes: 30 additions & 0 deletions requirements-cythonize.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
Babel==2.1.1
Cython==0.23.4
Jinja2==2.8
MarkupSafe==0.23
Pygments==2.0.2
Sphinx==1.3.3
alabaster==0.7.6
appdirs==1.4.0
args==0.1.0
astor==0.5
clint==0.5.1
coverage==4.0.3
docutils==0.12
flake8==2.5.0
mccabe==0.3.1
nose==1.3.7
pep8==1.5.7
pluggy==0.3.1
py==1.4.31
pyflakes==1.0.0
pytz==2015.7
readline==6.2.4.1
requests==2.8.1
rply==0.7.4
six==1.10.0
snowballstemmer==1.2.0
sphinx-rtd-theme==0.1.9
tox==2.2.1
virtualenv==13.1.2
wsgiref==0.1.2
5 changes: 5 additions & 0 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,11 +19,13 @@
# FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
# DEALINGS IN THE SOFTWARE.

import glob
import os
import re
import sys

from setuptools import find_packages, setup
from Cython.Build import cythonize

PKG = "hy"
VERSIONFILE = os.path.join(PKG, "version.py")
Expand Down Expand Up @@ -52,7 +54,10 @@
if os.name == 'nt':
install_requires.append('pyreadline==2.0')

pyx_modules = glob.glob("hy/*.py") + glob.glob("hy/*/*.py") + glob.glob("hy/*/*/*.py") + glob.glob("hy/*/*/*.py")

setup(
ext_modules=cythonize(pyx_modules),
name=PKG,
version=__version__,
install_requires=install_requires,
Expand Down

0 comments on commit 0ec0354

Please sign in to comment.