-
Notifications
You must be signed in to change notification settings - Fork 1
/
setup.py
executable file
·40 lines (37 loc) · 1.12 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
from setuptools import setup, Extension
# from distutils.core import setup, Extension
import os
import sys
import numpy
try:
import cdat_info
Version = cdat_info.Version
except Exception:
Version = "???"
print("VERSION:", Version)
setup(
name="genutil",
version=Version,
author="LLNL",
description="General utilities for scientific computing",
url="http://uvcdat.llnl.gov/software",
packages=["genutil", "unidata"],
package_dir={"genutil": "Lib", "unidata": "unidata"},
include_dirs=["Include", numpy.lib.utils.get_include()],
ext_modules=[
Extension("genutil.array_indexing", ["Src/array_indexing.c"]),
Extension(
"genutil.udunits_wrap",
[
"Src/udunits_wrap.c",
# 'Src/utparse.c',
# 'Src/utlib.c',
# 'Src/utscan.c',
],
include_dirs=[os.path.join(sys.prefix, "include")],
library_dirs=[os.path.join(sys.prefix, "lib")],
libraries=["udunits2", "expat"],
),
],
data_files=[("share/genutil", ("share/test_data_files.txt",))],
)