Skip to content

Commit afa310c

Browse files
committed
Merge pull request #760 from hashdist/cekees/add_pygrib
added pygrib and dependencies
2 parents 3720ac7 + 7244825 commit afa310c

4 files changed

Lines changed: 68 additions & 0 deletions

File tree

pkgs/grib_api.yaml

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
extends: [autotools_package]
2+
3+
dependencies:
4+
build: [jasper, openjpeg]
5+
6+
defaults:
7+
relocatable: false
8+
9+
sources:
10+
- key: tar.gz:fvfqkqzmtao4yk2zmb6vb3vscsx63q4u
11+
url: https://software.ecmwf.int/wiki/download/attachments/3473437/grib_api-1.12.3.tar.gz
12+
13+
build_stages:
14+
- name: configure
15+
mode: override
16+
extra: ['--with-jasper=${JASPER_DIR}']

pkgs/jasper.yaml

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
extends: [autotools_package]
2+
3+
sources:
4+
- key: zip:noifvhbkzixcovkeeetgn3x4j22e3foq
5+
url: http://www.ece.uvic.ca/~frodo/jasper/software/jasper-1.900.1.zip
6+
7+
defaults:
8+
relocatable: false
9+
10+
build_stages:
11+
- name: configure
12+
handler: bash
13+
mode: replace
14+
bash: |
15+
bash configure --prefix=${ARTIFACT} --enable-shared
16+
17+
- when: platform == 'Cygwin'
18+
name: configure
19+
handler: bash
20+
mode: replace
21+
bash: |
22+
cp /usr/share/automake-1.9/config.guess acaux
23+
bash configure --prefix=${ARTIFACT} --enable-shared

pkgs/pygrib.yaml

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
extends: [distutils_package]
2+
3+
dependencies:
4+
build: [python, jasper, grib_api, pyproj, numpy]
5+
run: [python, pyproj]
6+
7+
sources:
8+
- key: git:db179ce3dccee59bb41ca812c4b02750be74239f
9+
url: https://github.com/jswhit/pygrib.git
10+
11+
build_stages:
12+
- name: create-setup.cfg
13+
before: install
14+
handler: bash
15+
bash: |
16+
cat > setup.cfg << EOF
17+
[directories]
18+
grib_api_dir=${GRIB_API_DIR}
19+
jasper_dir=${JASPER_DIR}
20+
EOF
21+

pkgs/pyproj.yaml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
extends: [distutils_package]
2+
dependencies:
3+
build: [python]
4+
run: [python]
5+
6+
sources:
7+
- key: git:bb005aca2d933d77b78c0018f8b5d04c471b4608
8+
url: https://github.com/jswhit/pyproj.git

0 commit comments

Comments
 (0)