forked from nasa/PyTDA
-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.py
55 lines (46 loc) · 1.47 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
49
50
51
52
53
54
55
"""
Python Turbulence Detection Algorithm (PyTDA)
"""
import os
import sys
import numpy
from distutils.core import setup
from setuptools import find_packages
from distutils.sysconfig import get_python_lib
from distutils.extension import Extension
from Cython.Distutils import build_ext
# from distutils.core import setup
# - Pull the header into a variable
doclines = __doc__.split("\n")
VERSION = '1.1.1'
# - Set variables for setup
PACKAGES = ['pytda']
package_dir = {'': 'pytda'}
USE_CYTHON = True # command line option, try-import, ...
ext = '.pyx' if USE_CYTHON else '.c'
extensions = [Extension(PACKAGES[0]+'.pytda_cython_tools',
[PACKAGES[0]+'/pytda_cython_tools'+ext])]
if USE_CYTHON:
from Cython.Build import cythonize
extensions = cythonize(extensions)
setup(
name='pytda',
version=VERSION,
url='http://github.com/nasa/PyTDA',
author='Timothy Lang',
author_email='timothy.j.lang@nasa.gov',
description=doclines[0],
packages=PACKAGES,
classifiers=["""
Development Status :: Beta,
Programming Language :: Python",
Topic :: Scientific/Engineering
Topic :: Scientific/Engineering :: Atmospheric Science
Operating System :: Unix
Operating System :: POSIX :: Linux
Operating System :: MacOS
"""],
long_description="""Python Turbulence Detection Algorithm (PyTDA)""",
ext_modules=extensions,
include_dirs = [numpy.get_include(), '.']
)