Skip to content

Commit

Permalink
Merge pull request #114 from brian-rose/fix_build
Browse files Browse the repository at this point in the history
Get the builds working again on all platforms.
  • Loading branch information
brian-rose committed Nov 5, 2019
2 parents feacd42 + c48e2ee commit b9c5fa1
Show file tree
Hide file tree
Showing 7 changed files with 20 additions and 9 deletions.
4 changes: 3 additions & 1 deletion ci/requirements-py27-osx.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
name: test_env
channels:
- defaults
- conda-forge
dependencies:
- python=2.7
Expand All @@ -8,7 +9,8 @@ dependencies:
- xarray
- numpy
- scipy
- fortran-compiler
- gfortran_osx-64
- libgfortran
- future
- attrdict
- requests
Expand Down
4 changes: 3 additions & 1 deletion ci/requirements-py36-osx.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
name: test_env
channels:
- defaults
- conda-forge
dependencies:
- python=3.6
Expand All @@ -8,7 +9,8 @@ dependencies:
- xarray
- numpy
- scipy
- fortran-compiler
- gfortran_osx-64
- libgfortran
- future
- attrdict
- requests
Expand Down
4 changes: 3 additions & 1 deletion ci/requirements-py37-osx.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
name: test_env
channels:
- defaults
- conda-forge
dependencies:
- python=3.7
Expand All @@ -8,7 +9,8 @@ dependencies:
- xarray
- numpy
- scipy
- fortran-compiler
- gfortran_osx-64
- libgfortran
- future
- attrdict
- requests
Expand Down
2 changes: 1 addition & 1 deletion climlab/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
has been documented for a comprehensive understanding and traceability.
'''

__version__ = '0.7.5'
__version__ = '0.7.6.dev0'

# this should ensure that we can still import constants.py as climlab.constants
from .utils import constants, thermo, legendre
Expand Down
6 changes: 5 additions & 1 deletion conda-recipe/build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,13 @@ if [[ `uname` == 'Darwin' ]]; then
# Also, included a workaround so that `-stdlib=c++` doesn't go to
# `gfortran` and cause problems.
#
# https://github.com/conda-forge/toolchain-feedstock/pull/8
# https://github.com/conda-forge/toolchain-feedstock/pull/8export CFLAGS="${CFLAGS} -stdlib=libc++ -lc++"
export CFLAGS="${CFLAGS} -stdlib=libc++ -lc++"
export LDFLAGS="-headerpad_max_install_names -undefined dynamic_lookup -bundle -Wl,-search_paths_first -lc++"
# conda compilers need the MacOSX10.9 SDK and need to be told where they are
# https://www.anaconda.com/utilizing-the-new-compilers-in-anaconda-distribution-5/
# Other uses may need to update this if they install MacOSX10.9.sdk somewhere else
export CONDA_BUILD_SYSROOT=$HOME/opt/MacOSX10.9.sdk
else
unset LDFLAGS
fi
Expand Down
7 changes: 4 additions & 3 deletions conda-recipe/meta.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{% set version = "0.7.5" %}
{% set version = "0.7.6.dev0" %}

package:
name: climlab
Expand All @@ -18,6 +18,7 @@ requirements:
host:
- flang # [win and py3k]
- python
- setuptools
- pip
- numpy
run:
Expand All @@ -26,7 +27,7 @@ requirements:
- libflang # [win and py3k]
- scipy
- pydap
- urllib3
- requests
- xarray
- future
- attrdict
Expand All @@ -39,7 +40,7 @@ test:
imports:
- climlab
commands:
- pytest -v -m fast --pyargs climlab.tests --cov=climlab --cov-config .coveragerc --cov-report term-missing -v
- pytest -v --pyargs climlab.tests --cov=climlab --cov-config .coveragerc --cov-report term-missing -v
- codecov

about:
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import os

VERSION = '0.7.5'
VERSION = '0.7.6.dev0'

# BEFORE importing setuptools, remove MANIFEST. Otherwise it may not be
# properly updated when the contents of directories change (true for distutils,
Expand Down

0 comments on commit b9c5fa1

Please sign in to comment.