-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathsetup.py
48 lines (39 loc) · 1.38 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
42
43
44
45
46
47
48
#! /usr/bin/env python
# coding: utf-8
from distutils.core import setup
from Cython.Build import cythonize
files = ["data/*", '*.pyx']
from distutils.core import setup
from distutils.extension import Extension
import numpy
# build extension with CYTHON?
USE_CYTHON = False
ext = '.pyx' if USE_CYTHON else '.c'
extensions = [Extension("omi.cgrate", ["omi/cgrate"+ext])]
if USE_CYTHON:
from Cython.Build import cythonize
extensions = cythonize(extensions)
setup(
name = 'omi',
version = '0.1',
description = 'gridding algorithm for OMI data',
long_description = """
Module for gridding OMI data from Level 2 to Level 3.
""",
url = '',
download_url = '',
author = 'Gerrit Kuhlmann',
author_email = '[email protected]',
platforms = ['any'],
license = 'GNU3',
keywords = ['python', 'OMI'],
classifiers = ['Development Status :: Beta',
'Intended Audiance :: Science/Research',
'License :: GNU version 3',
'Operating System :: OS Independent'
],
packages = ['omi'],
package_data = {'omi': files},
ext_modules = extensions,
include_dirs = [numpy.get_include()]
)