-
Notifications
You must be signed in to change notification settings - Fork 16
/
setup.py
35 lines (31 loc) · 861 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
# -*- coding: utf-8 -*-
from setuptools import setup, find_packages, Extension
# FIXME - ehhh how do we build it?
from Cython.Build import cythonize
import numpy as np
setup(name='adagram',
version='0.0.1',
packages=find_packages(),
include_package_data=True,
install_requires=[
'cython',
'joblib',
'numpy>=1.9',
'six',
],
ext_modules=cythonize([
Extension(
'adagram/*', ['adagram/*.pyx'],
include_dirs=[np.get_include()],
extra_compile_args=[
'-march=native', '-O3', '-ffast-math', '-std=c99'],
extra_link_args=['-lm'],
),
]),
entry_points={
'console_scripts': [
'adagram-train = adagram.train:main',
]
},
)