forked from explosion/cymem
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsetup.py
executable file
·35 lines (29 loc) · 993 Bytes
/
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
#!/usr/bin/env python
from distutils.core import setup
try:
from Cython.Build import cythonize
from Cython.Distutils import Extension
exts = cythonize([Extension("cymem.cymem", ["cymem/cymem.pyx"])])
except ImportError:
from distutils.extension import Extension
exts = [Extension("cymem.cymem", ["cymem/cymem.c"])]
import sys
import os
from os.path import splitext
setup(
ext_modules=exts,
name="cymem",
packages=["cymem"],
version="1.10",
author="Matthew Honnibal",
author_email="[email protected]",
url="http://github.com/syllog1sm/cymem",
package_data={"cymem": ["*.pxd", "*.pyx", "*.c"]},
description="""Manage calls to calloc/free through Cython""",
classifiers=[
'Environment :: Console',
'Operating System :: OS Independent',
'Intended Audience :: Science/Research',
'Programming Language :: Cython',
'Topic :: Scientific/Engineering'],
)