-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsetup.py
More file actions
32 lines (28 loc) · 1011 Bytes
/
setup.py
File metadata and controls
32 lines (28 loc) · 1011 Bytes
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
from distutils.core import setup, Extension
try:
import numpy
except ImportError:
raise SystemExit('requires NumPy version > 1.6.0')
INC_DIR = ['$HOME/include',
'/usr/include',
'/usr/local/include',
numpy.get_include()]
LIB_DIR = ['$HOME/lib',
'/usr/lib64',
'/usr/lib',
'/usr/local/lib',]
moduleerfa = Extension('_erfa',
include_dirs = INC_DIR,
libraries = ['erfa', 'm'],
library_dirs = LIB_DIR,
## extra_compile_args = ["-std=gnu99", "-g"],
sources = ['src/_erfamodule.c'])
setup (name = 'erfa_numpy',
version = '2014.01.20',
description = 'numpy wrapper for ERFA library',
url = 'https://github.com/nirinA/erfa_numpy',
author = 'nirinA raseliarison',
author_email = 'nirina.raseliarison@gmail.com',
py_modules=['erfa'],
ext_modules = [moduleerfa, ],
license="Public Domain")