diff --git a/conda_recipe/build.sh b/conda_recipe/build.sh index caea697..1b389c5 100644 --- a/conda_recipe/build.sh +++ b/conda_recipe/build.sh @@ -4,6 +4,10 @@ if [ `uname` == Darwin ]; then LDFLAGS="$LDFLAGS -undefined dynamic_lookup -bundle" fi -pip install . +if [`uname` == Darwin] || [`uname` == Linux]; then + pip install . +else + pip install --global-option build --global-option --compiler=mingw32 --global-option --fcompiler=gnu95 +fi diff --git a/conda_recipe/meta.yaml b/conda_recipe/meta.yaml index 10a4595..3a4c6b3 100644 --- a/conda_recipe/meta.yaml +++ b/conda_recipe/meta.yaml @@ -4,7 +4,7 @@ # continuum can release a fix. package: name: wrf-python - version: {{ load_setup_py_data().version }} + version: 1.0a3 source: git_url: git@github.com:NCAR/wrf-python.git @@ -17,7 +17,8 @@ requirements: build: - numpy x.x - wrapt - - gcc + - mingw # [win] + - gcc # [unix] - python - libgcc @@ -25,7 +26,8 @@ requirements: - numpy x.x - python - wrapt - - libgcc + - mingw # [win] + - libgcc # [unix] - xarray test: