Skip to content

Commit

Permalink
Merge pull request #7 from jennan/cython_extension
Browse files Browse the repository at this point in the history
add cython module to setup.py
  • Loading branch information
ChristophKirst authored Jul 25, 2016
2 parents 16fd455 + a88c17e commit 39250f5
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion setup.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
# -*- coding: utf-8 -*-

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

import ClearMap

Expand All @@ -10,6 +12,12 @@
with open('LICENSE.txt') as fptr:
license = fptr.read()

extensions = [Extension(
"ClearMap/Analysis/VoxelizationCode",
["ClearMap/Analysis/VoxelizationCode.pyx"],
)
]

setup(
name = ClearMap.__title__,
version = ClearMap.__version__,
Expand All @@ -20,6 +28,7 @@
url = 'https://www.idisco.info/',
license = license,
packages = find_packages(exclude=('tests', 'docs')),
ext_modules = cythonize(extensions),
classifiers=(
'Development Status :: 1- Beta',
'Intended Audience :: Science/Research',
Expand All @@ -35,4 +44,4 @@
'Programming Language :: Python :: 3.4',
'Programming Language :: Python :: 3.5',
),
)
)

0 comments on commit 39250f5

Please sign in to comment.