-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsetup.py
35 lines (32 loc) · 944 Bytes
/
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
import os
import shutil
from numpy.distutils.core import setup, Extension
from setuptools import find_packages
# Clean build directory to force recompiling fortran libraries...
build_dir = 'build'
if os.path.exists(build_dir):
shutil.rmtree(build_dir)
setup(
name='seba',
version='0.1.0',
license='MIT',
description='A package for computing the spectral energy budget of the atmosphere',
author='Yanmichel A. Morfa',
author_email='[email protected]',
packages=find_packages(),
package_dir={'seba': 'seba'},
ext_modules=[Extension('numeric_tools', sources=['seba/fortran_libs/numeric_tools.f90'])],
python_requires='>=3.9',
setup_requires=['numpy'],
install_requires=[
'pint',
'shtns',
'xarray',
'numpy',
'scipy',
'matplotlib'
],
include_package_data=True,
package_data={'seba': ['*.so']},
zip_safe=False
)