-
Notifications
You must be signed in to change notification settings - Fork 7
/
setup.py
41 lines (37 loc) · 1.24 KB
/
setup.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
from distutils.core import setup
from Cython.Build import cythonize
import Cython.Compiler.Options
Cython.Compiler.Options.cimport_from_pyx = True
# TODO: in the future distribute c sources instead of pyx files
# https://stackoverflow.com/questions/4505747/how-should-i-structure-a-python-package-that-contains-cython-code
extra_kwargs = {
"ext_modules": cythonize(
'daffodil/*.pyx',
compiler_directives={
'language_level': "3",
# controls extensions which allow cprofile to see cython functions but
# has a small performance penalty
'profile': False,
}
)
}
setup(
name='daffodil',
version='0.7.3',
author='James Robert',
description='A Super-simple DSL for filtering datasets',
license='MIT',
keywords='data filtering',
url='https://github.com/mediapredict/daffodil',
packages=['daffodil'],
install_requires=['cython'],
long_description='A Super-simple DSL for filtering datasets',
classifiers=[
'License :: OSI Approved :: MIT License',
'Programming Language :: Python',
'Intended Audience :: Developers',
'Operating System :: OS Independent',
'Topic :: Utilities'
],
**extra_kwargs
)