Skip to content

Commit d5d5c3c

Browse files
authored
Merge pull request #4 from AnacondaRecipes/sb_update_v1.3.1
Update `basemap` to v1.3.1
2 parents 8f59a03 + 7c41059 commit d5d5c3c

File tree

8 files changed

+186
-181
lines changed

8 files changed

+186
-181
lines changed

recipe/bld-basemap.bat

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
ECHO "===================================================================================================="
2+
ECHO "Building %PKG_NAME%"
3+
ECHO ""
4+
5+
:: Ensure our geos will be used.
6+
set GEOS_DIR=%LIBRARY_PREFIX%
7+
8+
:: Jump to the correct build section
9+
if "%PKG_NAME%"=="basemap" GOTO CASE_basemap
10+
if "%PKG_NAME%"=="basemap-data" GOTO CASE_basemap_data
11+
if "%PKG_NAME%"=="basemap-data-hires" GOTO CASE_basemap_data_hires
12+
13+
ECHO "Unknown package: %PKG_NAME%"
14+
EXIT 1
15+
16+
17+
:CASE_basemap
18+
"%PYTHON%" -m pip install packages\basemap --no-deps --ignore-installed -vvv
19+
IF errorlevel 1 EXIT 1
20+
GOTO CASE_end
21+
22+
:CASE_basemap_data
23+
"%PYTHON%" -m pip install packages\basemap_data --no-deps --ignore-installed -vvv
24+
IF errorlevel 1 EXIT 1
25+
GOTO CASE_end
26+
27+
:CASE_basemap_data_hires
28+
"%PYTHON%" -m pip install packages\basemap_data_hires --no-deps --ignore-installed -vvv
29+
IF errorlevel 1 EXIT 1
30+
GOTO CASE_end
31+
32+
33+
:CASE_END

recipe/bld.bat

Lines changed: 0 additions & 30 deletions
This file was deleted.

recipe/build-basemap.sh

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
#!/bin/bash
2+
3+
echo "===================================================================================================="
4+
echo "Building $PKG_NAME"
5+
echo ""
6+
7+
export GEOS_DIR=$PREFIX
8+
9+
case $PKG_NAME in
10+
11+
basemap)
12+
$PYTHON -m pip install packages/basemap --no-deps --ignore-installed -vvv
13+
;;
14+
15+
basemap-data)
16+
$PYTHON -m pip install packages/basemap_data --no-deps --ignore-installed -vvv
17+
;;
18+
19+
basemap-data-hires)
20+
$PYTHON -m pip install packages/basemap_data_hires --no-deps --ignore-installed -vvv
21+
;;
22+
23+
*)
24+
echo "No build instructions for $PKG_NAME"
25+
exit 1
26+
;;
27+
28+
esac

recipe/build.sh

Lines changed: 0 additions & 26 deletions
This file was deleted.

recipe/data.patch

Lines changed: 0 additions & 61 deletions
This file was deleted.
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
diff -ru basemap-1.3.1.orig/packages/basemap/src/mpl_toolkits/basemap/__init__.py basemap-1.3.1/packages/basemap/src/mpl_toolkits/basemap/__init__.py
2+
--- basemap-1.3.1.orig/packages/basemap/src/mpl_toolkits/basemap/__init__.py 2022-01-31 12:16:48.000000000 -0700
3+
+++ basemap-1.3.1/packages/basemap/src/mpl_toolkits/basemap/__init__.py 2022-02-08 11:22:55.000000000 -0700
4+
@@ -1226,7 +1226,8 @@
5+
Unable to open boundary dataset file. Only the 'crude', 'low' and
6+
'intermediate' resolution datasets are installed by default. If you
7+
are requesting a 'high' or 'full' resolution dataset, you need to
8+
- install the `basemap-data-hires` package.""")
9+
+ install the `basemap-data-hires` package with
10+
+ `conda install -c conda-forge basemap-data-hires`.""")
11+
# only gshhs coastlines can be polygons.
12+
if name != 'gshhs': as_polygons=False
13+
try:

recipe/meta.yaml

Lines changed: 112 additions & 52 deletions
Original file line numberDiff line numberDiff line change
@@ -1,71 +1,131 @@
1-
{% set version = "1.2.2" %}
1+
{% set version = "1.3.1" %}
2+
{% set build_number = "0" %}
23

34
package:
4-
name: basemap
5+
name: basemap-split
56
version: {{ version }}
67

78
source:
8-
url: https://github.com/matplotlib/basemap/archive/v{{ version }}rel.tar.gz
9-
sha256: 7e6ee5d03b10168862cff82bfa819df8264c04f078eac4549a22dd2631696613
9+
url: https://github.com/matplotlib/basemap/archive/v{{ version }}.tar.gz
10+
sha256: 8f4ed7d5736711ba2b413e5fe038d4349d35eb3f28cba836094b6cca5f0a634f
1011
patches:
11-
- data.patch
12+
# Update messages regarding installation of `basemap-data-hires`.
13+
- install_hires_instructions.patch
1214

1315
build:
14-
number: 2
15-
# This package isn't included to the SOW Packages list
16-
skip: True # [linux and s390x]
17-
skip: True # [win and py2k]
18-
ignore_run_exports:
19-
- proj
16+
number: {{ build_number }}
17+
skip: True # [s390x] Missing dependencies.
18+
skip: True # [win32] Missing dependencies in win32 arch and not expecting they will be updated.
19+
skip: True # [py<38] Dependencies require 3.8+
2020

2121
requirements:
2222
build:
23-
- {{ compiler('c') }}
24-
- {{ compiler('cxx') }}
2523
- m2-patch # [win]
2624
- patch # [not win]
27-
host:
28-
- python
29-
- cython
30-
- geos
31-
- numpy
32-
- pip
33-
- proj
34-
- pyproj
35-
- setuptools
36-
- wheel
37-
run:
38-
- python
39-
- {{ pin_compatible('numpy') }}
40-
- geos
41-
- matplotlib-base >=1.0.0,!=3.0.1
42-
- proj
43-
- pyproj >=1.9.3
44-
- pyshp >=1.2.0
45-
- six
4625

47-
test:
48-
imports:
49-
- mpl_toolkits.basemap
50-
requires:
51-
- pip
52-
commands:
53-
- pip check
54-
- python -c "from mpl_toolkits.basemap import Basemap"
5526

56-
about:
57-
home: http://matplotlib.org/basemap
58-
license: MIT
59-
license_family: MIT
60-
license_file: README.md
61-
summary: 'Plot on map projections using matplotlib'
62-
description: |
63-
Basemap toolkit is a library for plotting 2D data on maps in Python.
64-
It is similar in functionality to the matlab mapping toolbox, the IDL mapping facilities, GrADS, or the Generic Mapping Tools.
65-
dev_url: https://github.com/matplotlib/basemap
66-
doc_url: http://matplotlib.org/basemap/
67-
doc_source_url: https://github.com/matplotlib/basemap/blob/master/doc/index.rst
27+
outputs:
28+
29+
- name: basemap
30+
script: build-basemap.sh # [not win]
31+
script: bld-basemap.bat # [win]
32+
build:
33+
requirements:
34+
build:
35+
- {{ compiler('c') }}
36+
- {{ compiler('cxx') }}
37+
host:
38+
- python
39+
- pip
40+
- cython >=0.29,<3.1
41+
- numpy >=1.21 # [not ppc64le]
42+
- numpy >=1.19 # [ppc64le]
43+
- geos
44+
- pyproj
45+
- setuptools
46+
- wheel
47+
run:
48+
- {{ pin_subpackage('basemap-data') }}
49+
- python
50+
- {{ pin_compatible('numpy') }}
51+
- {{ pin_compatible('geos') }}
52+
- matplotlib-base >=1.5,!=3.0.1
53+
- pyproj >=1.9.3,<3.4
54+
- pyshp >=1.2.0,<2.2
55+
- six >=1.10,<1.16
56+
test:
57+
imports:
58+
- mpl_toolkits.basemap
59+
requires:
60+
- pip
61+
- {{ pin_subpackage('basemap-data') }}
62+
commands:
63+
- pip check
64+
- python -c "from mpl_toolkits.basemap import Basemap"
65+
about:
66+
home: https://matplotlib.org/basemap
67+
license: MIT
68+
license_family: MIT
69+
license_file:
70+
- packages/basemap/LICENSE
71+
summary: 'Plot on map projections using matplotlib'
72+
description: |
73+
Basemap toolkit is a library for plotting 2D data on maps in Python.
74+
It is similar in functionality to the matlab mapping toolbox, the IDL mapping facilities, GrADS, or the Generic Mapping Tools.
75+
dev_url: https://github.com/matplotlib/basemap
76+
doc_url: https://matplotlib.org/basemap/
77+
doc_source_url: https://github.com/matplotlib/basemap/blob/v{{ version }}/packages/basemap/doc/index.rst
78+
79+
- name: basemap-data
80+
script: build-basemap.sh # [not win]
81+
script: bld-basemap.bat # [win]
82+
build:
83+
noarch: python
84+
requirements:
85+
host:
86+
- python
87+
- pip
88+
- setuptools
89+
- wheel
90+
run:
91+
- python >=3.6
92+
about:
93+
home: https://matplotlib.org/basemap
94+
license: LGPL-3.0-or-later
95+
license_family: LGPL
96+
license_file: packages/basemap_data_hires/COPYING.LESSER
97+
summary: Plot on map projections (with coastlines and political boundaries) using matplotlib.
98+
dev_url: https://github.com/matplotlib/basemap
99+
doc_url: https://matplotlib.org/basemap/
100+
doc_source_url: https://github.com/matplotlib/basemap/blob/v{{ version }}/packages/basemap/doc/index.rst
101+
102+
- name: basemap-data-hires
103+
script: build-basemap.sh # [not win]
104+
script: bld-basemap.bat # [win]
105+
build:
106+
noarch: python
107+
requirements:
108+
host:
109+
- python
110+
- pip
111+
- setuptools
112+
- wheel
113+
run:
114+
- {{ pin_subpackage('basemap-data') }}
115+
- python >=3.6
116+
about:
117+
home: https://matplotlib.org/basemap
118+
license: LGPL-3.0-or-later
119+
license_family: LGPL
120+
license_file: packages/basemap_data_hires/COPYING.LESSER
121+
summary: Plot on map projections (with coastlines and political boundaries) using matplotlib.
122+
dev_url: https://github.com/matplotlib/basemap
123+
doc_url: https://matplotlib.org/basemap/
124+
doc_source_url: https://github.com/matplotlib/basemap/blob/v{{ version }}/packages/basemap/doc/index.rst
125+
126+
68127

69128
extra:
70129
recipe-maintainers:
130+
- molinav
71131
- ocefpaf

recipe/use_proj_data.patch

Lines changed: 0 additions & 12 deletions
This file was deleted.

0 commit comments

Comments
 (0)