forked from narusehajime/turb2d
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsetup.py
47 lines (42 loc) · 1.25 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
# -*- coding: utf-8 -*-
import numpy as np
from Cython.Build import cythonize
from setuptools import setup, Extension, find_packages
with open("README.rst") as f:
readme = f.read()
with open("LICENSE") as f:
license = f.read()
# ext = Extension("cip",
# sources=["turb2d/cip.pyx"],
# include_dirs=[np.get_include()])
# ext2 = Extension("gridutils",
# sources=["turb2d/gridutils.pyx"],
# include_dirs=[np.get_include()])
ext_neighbors_at_link = Extension(
"_neighbors_at_link",
sources=["turb2d/_neighbors_at_link.pyx"],
include_dirs=[np.get_include()],
)
setup(
name="turb2d",
version="0.3.0",
description="2D shallow water model for turbidity currents",
long_description=readme,
author="Hajime Naruse",
author_email="[email protected]",
url="https://github.com/narusehajime/turb2d.git",
license=license,
install_requires=[
"cython",
"numpy",
"scipy",
"landlab",
"matplotlib",
"gdal",
"tqdm",
],
# ext_modules=cythonize([ext, ext2]),
# ext_modules=cythonize([ext]),
ext_modules=cythonize([ext_neighbors_at_link]),
packages=find_packages(exclude=("tests", "docs")),
)