Skip to content

Commit

Permalink
Merge pull request #122 from ioam/cythonize
Browse files Browse the repository at this point in the history
Enabled cythonizing of param modules if Cython is available
  • Loading branch information
jbednar committed Apr 1, 2016
2 parents 919a86b + 0f37d81 commit 1f94abc
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 3 deletions.
1 change: 0 additions & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@ language: python
python:
- "2.6"
- "2.7"
- "3.2"
- "3.3"
- "3.4"
- "pypy"
Expand Down
2 changes: 2 additions & 0 deletions setup.cfg
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
[build_ext]
inplace=1
11 changes: 9 additions & 2 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,12 @@
except ImportError:
from distutils.core import setup

try:
from Cython.Build import cythonize
ext_modules = cythonize("param/*.py", exclude=['param/ipython.py'])
except:
ext_modules = []

setup_args = {}

setup_args.update(dict(
Expand All @@ -16,8 +22,9 @@
long_description=open('README.rst').read() if os.path.isfile('README.rst') else 'Consult README.rst',
author= "IOAM",
author_email= "developers@topographica.org",
maintainer= "IOAM",
maintainer_email= "developers@topographica.org",
ext_modules=ext_modules,
maintainer="IOAM",
maintainer_email="developers@topographica.org",
platforms=['Windows', 'Mac OS X', 'Linux'],
license='BSD',
url='http://ioam.github.com/param/',
Expand Down

0 comments on commit 1f94abc

Please sign in to comment.