-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsetup_with_prt_patch.py
55 lines (47 loc) · 1.23 KB
/
setup_with_prt_patch.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
import setuptools
class NoNumpy(Exception):
pass
try:
from numpy.distutils.core import Extension
from numpy.distutils.core import setup
except ImportError:
raise NoNumpy("Numpy Needs to be installed for extensions to be compiled.")
with open("README.md", "r") as fh:
long_description = fh.read()
fort_bol_flux = Extension(
"opac_mixer.fort_bol_flux",
sources=["opac_mixer/patches/fort_bol_flux.f90"],
extra_compile_args=[
"-O3",
"-funroll-loops",
"-ftree-vectorize",
"-msse",
"-msse2",
"-m3dnow",
],
)
setup(
name="opac_mixer",
version="v1.0",
packages=setuptools.find_packages(),
include_package_data=True,
url="https://github.com/aarondavidschneider/opac_mixer",
license="MIT",
author="Aaron David Schneider",
author_email="[email protected]",
description="opacity mixing - accelerated",
long_description=long_description,
long_description_content_type="text/markdown",
ext_modules=[fort_bol_flux],
install_requires=[
"scikit-learn",
"numba",
"scipy",
"numpy",
"matplotlib",
"tqdm",
"h5py",
"tensorflow",
"MITgcmutils",
],
)