setup   A
last analyzed

Complexity

Total Complexity 0

Size/Duplication

Total Lines 28
Duplicated Lines 0 %

Importance

Changes 0
Metric Value
wmc 0
eloc 17
dl 0
loc 28
rs 10
c 0
b 0
f 0
1
#!/usr/bin/env python
2
3
import os
4
import re
5
from os import path
6
7
from setuptools import setup, find_packages
8
from distutils.core import Extension
9
10
11
# enable code coverage for C code
12
# We can't use CFLAGS=-coverage in tox.ini, since that may mess with
13
# compiling dependencies (e.g. numpy). Therefore we set PY_CCOV=-coverage
14
# in tox.ini and copy it to CFLAGS here (after deps have been installed)
15
if 'PY_CCOV' in os.environ.keys():
16
    os.environ['CFLAGS'] = os.environ['PY_CCOV']
17
18
19
setup(packages=find_packages(), ext_modules=[
20
    Extension('aacgmv2._aacgmv2',
21
              sources=['aacgmv2/aacgmv2module.c',
22
                       'c_aacgmv2/src/aacgmlib_v2.c',
23
                       'c_aacgmv2/src/astalglib.c',
24
                       'c_aacgmv2/src/igrflib.c',
25
                       'c_aacgmv2/src/mlt_v2.c',
26
                       'c_aacgmv2/src/rtime.c'],
27
              include_dirs=['c_aacgmv2/include'])],)
28