/
setup.py
67 lines (62 loc) · 2.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
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
import setuptools
# import os
# import subprocess
from setuptools import Extension
# from setuptools.command.develop import develop
# from setuptools.command.install import install
#
#
# class PostDevelopCommand(develop):
# """Post-installation for development mode."""
#
# def run(self):
# # PUT YOUR POST-INSTALL SCRIPT HERE or CALL A FUNCTION
# develop.run(self)
#
#
# class PostInstallCommand(install):
# """Post-installation for installation mode."""
#
# def run(self):
# filepath = os.path.realpath(__file__)
# vertical_path = os.path.join(filepath[0], "romspy/interpolation/vertical/")
# subprocess.run(["gcc", "-Wall", "-Wextra", "-fPIC", "-fopenmp", "-shared", vertical_path + "linear.c", "-o",
# vertical_path + "linear.so"])
# install.run(self)
with open("README.md", "r") as fh:
long_description = fh.read()
# ext = Extension(
# 'linear',
# sources=['romspy/interpolation/vertical/linear.c'],
# language='c',
# extra_compile_args=['-fopenmp', '-O3'])
setuptools.setup(
name="romspy",
version="1.0.b48",
author="Nicolas Munnich",
author_email="nmdm20@bath.ac.uk",
description="Preprocessing files for use in ROMS",
long_description=long_description,
long_description_content_type="text/markdown",
url="https://https://github.com/Saixos/romspy",
packages=setuptools.find_packages(include=["romspy", "romspy.*"]),
install_requires=[
'numpy>=1.17.1',
'xarray>=0.12.3',
'cdo>=1.4.3',
'netCDF4>=1.5.1.2',
],
# ext_modules=[ext],
classifiers=[
"Programming Language :: Python :: 3.7",
"License :: OSI Approved :: GNU General Public License v2 or later (GPLv2+)",
"Operating System :: OS Independent",
"Intended Audience :: Science/Research",
"Natural Language :: English",
"Programming Language :: C",
"Topic :: Scientific/Engineering",
"Typing :: Typed"
],
keywords='preprocessing ROMS roms Regional Ocean Modelling System cdo Climate Data Operators netcdf4 ',
python_requires='>=3.6',
)