From 6342b552404b9e10fec224fca8b33dbc69449e40 Mon Sep 17 00:00:00 2001 From: Bill Ladwig Date: Wed, 18 Jan 2017 14:55:26 -0700 Subject: [PATCH] Saving recipes that are mostly working with conda-forge. Fixed warnings with MANIFEST.in --- MANIFEST.in | 3 ++- conda_recipe/bld.bat | 2 +- conda_recipe/build.sh | 7 +++---- conda_recipe/meta.yaml | 34 +++++++++++++++++++++++----------- 4 files changed, 29 insertions(+), 17 deletions(-) diff --git a/MANIFEST.in b/MANIFEST.in index 2a82091..d83672c 100644 --- a/MANIFEST.in +++ b/MANIFEST.in @@ -6,7 +6,8 @@ include fortran/*.f90 include fortran/*.pyf include setup.py -recursive-include doc/source/* +recursive-include doc/source * +recursive-exclude doc/build * include doc/make.bat include doc/Makefile diff --git a/conda_recipe/bld.bat b/conda_recipe/bld.bat index 89dd3fc..c96ac4c 100644 --- a/conda_recipe/bld.bat +++ b/conda_recipe/bld.bat @@ -1,2 +1,2 @@ -pip install --global-option build --global-option --compiler=mingw32 --global-option --fcompiler=gnu95 . +python setup.py build --compiler=mingw32 --fcompiler=gnu95 install --single-version-externally-managed --record=record.txt diff --git a/conda_recipe/build.sh b/conda_recipe/build.sh index 5f9f03d..acabc43 100644 --- a/conda_recipe/build.sh +++ b/conda_recipe/build.sh @@ -1,11 +1,10 @@ -#!/bin/sh +#!/bin/bash if [ `uname` == Darwin ]; then LDFLAGS="$LDFLAGS -undefined dynamic_lookup -bundle" fi - -pip install . - +$PYTHON setup.py build +$PYTHON setup.py install --single-version-externally-managed --record=record.txt diff --git a/conda_recipe/meta.yaml b/conda_recipe/meta.yaml index 30fa421..1aca5fe 100644 --- a/conda_recipe/meta.yaml +++ b/conda_recipe/meta.yaml @@ -1,34 +1,38 @@ +{% set version = "1.0b1" %} package: name: wrf-python - version: 1.0a3 + version: {{ version }} source: - git_url: https://github.com/NCAR/wrf-python.git + fn: wrf-python-{{ version }}.tar.gz + url: https://github.com/NCAR/wrf-python/archive/{{ version }}.tar.gz + sha256: 94f05a9719701959702094eafb84555a996bc4f7d75042fb07bca3c35bda9f31 build: number: 1 detect_binary_files_with_prefix: true - skip: True # [win and py>=35] + skip: True # [win32 or np>=112 or (win and py>=35)] requirements: build: + - pip - numpy x.x - wrapt - - m2w64-toolchain # [win] - - gcc # [unix] - - libgcc # [unix] + - m2w64-toolchain # [win] + - gcc # [unix] + - libgcc # [unix] - python - vc 9 # [win and py27] - vc 10 # [win and py34] - vc 14 # [win and py>=35] - run: - numpy x.x - python - wrapt - - m2w64-toolchain # [win] - - libgcc # [unix] + - m2w64-toolchain # [win] + - gcc # [unix] + - libgcc # [unix] - xarray - vc 9 # [win and py27] - vc 10 # [win and py34] @@ -39,7 +43,15 @@ test: - nose imports: - wrf - #commands: - #- cd $SRC_DIR/src/examples && for file in xy2.py; do echo $file ; nosetests $file ; done | tee pyngl-test.log +about: + home: https://github.com/NCAR/wrf-python + license: "NCL Source Code" + summary: "Diagnostic and interpolation routines for WRF-ARW data." +extra: + recipe-maintainers: + - bladwig1 + - marylhaley + - david-ian-brown + - khallock