Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit b501fd4

Browse files
committed
CI: Update conda package build.sh for unix/mac
This file is optimized for CI ServiceS: travis for MACOSX build and CircleCI for Linux.
1 parent 8159b57 commit b501fd4

File tree

2 files changed

+12
-3
lines changed

2 files changed

+12
-3
lines changed

ci/conda_recipe/build.sh

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,12 +8,20 @@ if [ `uname` == Linux ]; then
88
fi
99

1010
if [ `uname` == Darwin ]; then
11-
sed s:'#ifdef WITH_NEXT_FRAMEWORK':'#if 1':g -i src/_macosx.m
11+
# run tests with Agg...
12+
# prevents a problem with Macosx mpl not installed as framework
13+
export MPLBACKEND=Agg
14+
# This seems to be not anymore needed...
15+
#sed s:'#ifdef WITH_NEXT_FRAMEWORK':'#if 1':g -i src/_macosx.m
1216
fi
1317

1418
cp setup.cfg.template setup.cfg || exit 1
1519

16-
sed s:/usr/local:$PREFIX:g -i setupext.py
20+
# on mac there is an error if done inplace:
21+
# sed: -i: No such file or directory
22+
# travis macosx sed has not even --help...
23+
mv setupext.py setupext.py_orig
24+
cat setupext.py_orig | sed s:/usr/local:$PREFIX:g > setupext.py
1725

1826
$PYTHON setup.py install
1927

ci/conda_recipe/meta.yaml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,13 +3,14 @@
33

44
package:
55
name: matplotlib-test
6+
# this version is replaced with a proper version from setup.py via the condaversion.patch
67
version: 1.5.0.9
78

89
source:
910
path: ../../
1011

1112
patches:
12-
# don't run nosetest
13+
# don't run nosetest (again)
1314
- cfg_notests.patch
1415
# nake Qt4Agg the default backend
1516
- cfg_qt4agg.patch #[not osx]

0 commit comments

Comments
 (0)