-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathsetup.py
More file actions
executable file
·52 lines (46 loc) · 1.69 KB
/
setup.py
File metadata and controls
executable file
·52 lines (46 loc) · 1.69 KB
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
#! /usr/bin/env python
# System imports
from distutils.core import *
from distutils import sysconfig
from pip import __file__ as pip_loc
from os import path
# Third-party modules - we depend on numpy for everything
import numpy
# Obtain the numpy include directory. This logic works across numpy versions.
try:
numpy_include = numpy.get_include()
except AttributeError:
numpy_include = numpy.get_numpy_include()
install_to = path.join(path.split(path.split(pip_loc)[0])[0],
'pycosmo', 'templates')
# interp1 extension module
_interp1_c = Extension("_interp1_c",
["./pycosmo/c/interp1_c.i","./pycosmo/c/interp1_c.c"],
include_dirs = [numpy_include],
)
_radar_interp_c = Extension("_radar_interp_c",
["./pycosmo/c/radar_interp_c.i","./pycosmo/c/radar_interp_c.c"],
include_dirs = [numpy_include],
)
# ezrange setup
setup( name = "pycosmo",
description = "Python tools for the COSMO NWP model",
version = "1.0",
url='http://gitlab.epfl.ch/wolfensb/radar_simulator/',
author='Daniel Wolfensberger - LTE EPFL',
author_email='daniel.wolfensberger@epfl.ch',
license='GPL-3.0',
packages=['pycosmo','pycosmo/c'],
package_data = {'pycosmo' : ['grib_keys.txt'],'pycosmo/c' : ['*.o','*.i','*.c'],'pycosmo/gt':['*']},
data_files = [(install_to, ["LICENSE"])],
include_package_data=True,
install_requires=[
'pyproj',
'numpy',
'scipy',
'pynio',
'basemap',
],
zip_safe=False,
ext_modules = [_interp1_c,_radar_interp_c ]
)