8000 travis: attempt to set CPPFLAGS in a delayed manner. · matplotlib/matplotlib@746bcdd · GitHub
[go: up one dir, main page]

Skip to content

Commit 746bcdd

Browse files
travis: attempt to set CPPFLAGS in a delayed manner.
Hopefully this will avoid cross-talks with other installs
1 parent 8dd0d18 commit 746bcdd

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

.travis.yml

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -87,14 +87,11 @@ matrix:
8787
- EXTRAREQS='-r requirements/testing/travis_flake8.txt'
8888
- python: 3.6
8989
env:
90-
- CPPFLAGS=--coverage
9190
- PINNEDVERS='-c requirements/testing/travis36minver.txt'
9291
- DELETE_FONT_CACHE=1
9392
- EXTRAREQS='-r requirements/testing/travis36.txt'
9493
- python: 3.7
9594
sudo: true
96-
env:
97-
- CPPFLAGS=--coverage
9895
- python: "nightly"
9996
env:
10097
- PRE=--pre
@@ -162,6 +159,11 @@ install:
162159
echo 'wxPython is available' ||
163160
echo 'wxPython is not available'
164161
162+
# Set flag in a delayed manner to avoid issues with installing other packages
163+
- |
164+
if [[ $RUN_PYTEST == 1 ]]; then
165+
export CPPFLAGS=--coverage
166+
fi
165167
- |
166168
# Install matplotlib
167169
python -mpip install -ve .

0 commit comments

Comments
 (0)
0