Skip to content

Commit

Permalink
Merge pull request #112 from krachyon/master
Browse files Browse the repository at this point in the history
dependencies in setup.py
  • Loading branch information
brian-rose committed Nov 13, 2019
2 parents ddc51b1 + 61adcf4 commit f2a8ed1
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 1 deletion.
6 changes: 6 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
[build-system]
requires = [
"wheel",
"setuptools",
"numpy",
]
10 changes: 9 additions & 1 deletion setup.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
from __future__ import print_function
import os

VERSION = '0.7.6.dev2'
Expand All @@ -15,7 +16,12 @@ def readme():
# Patch the Fortran compiler not to optimize certain sources
def patch_fortran():
# This should work for all subclasses of FCompiler
from numpy.distutils import fcompiler
try:
from numpy.distutils import fcompiler
except ImportError:
import sys
print("\nPlease install numpy before installing climlab\n", file=sys.stderr)
sys.exit(-1)

def monkeypatched_spawn(old_spawn):
def spawn(self, cmd, *args, **kw):
Expand Down Expand Up @@ -63,6 +69,8 @@ def setup_package():
url='http://github.com/brian-rose/climlab',
author='Brian E. J. Rose',
author_email='brose@albany.edu',
setup_requires=['numpy'],
install_requires=['numpy','xarray','attrdict','scipy'],
license='MIT',
)
run_build = True
Expand Down

0 comments on commit f2a8ed1

Please sign in to comment.