Skip to content

Commit aa4d19c

Browse files
committed
BLD: Cleanup env vars after basedir change
1 parent 5a7e3b4 commit aa4d19c

File tree

2 files changed

+3
-18
lines changed

2 files changed

+3
-18
lines changed

appveyor.yml

Lines changed: 2 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -56,18 +56,11 @@ install:
5656
- activate test-environment
5757
# This is needed for the installer to find the dlls...
5858
- set LIBRARY_LIB=%CONDA_DEFAULT_ENV%\Library\lib
59-
- dir %LIBRARY_LIB%
6059
- cmd: 'mkdir lib || cmd /c "exit /b 0"'
6160
- copy %LIBRARY_LIB%\zlibstatic.lib lib\z.lib
6261
- copy %LIBRARY_LIB%\libpng_static.lib lib\png.lib
63-
- set LIB=%LIBRARY_LIB%;.\lib
64-
- set LIBPATH=%LIBRARY_LIB%;.\lib
65-
- set LIB_INC=%CONDA_DEFAULT_ENV%\Library\include
66-
- set INCLUDE=%LIB_INC%;%LIB_INC%\freetype2;WhateverInclude
67-
- set CPLUS_INCLUDE_PATH=%LIB_INC%\freetype2;%LIB_INC%;WhateverCPLUS
68-
- dir %LIB_INC%
69-
- dir %LIB_INC%\freetype2
70-
# Show the installed packages + versions
62+
- set MPLBASEDIRLIST=%CONDA_DEFAULT_ENV%\Library\;.
63+
# Show the installed packages + versions
7164
- conda list
7265

7366
test_script:
@@ -87,12 +80,6 @@ after_test:
8780
# is set dynamically. This unfortunately mean that conda build --output
8881
# doesn't really work.
8982
- cmd: '%CMD_IN_ENV% conda config --get channels'
90-
# These vars get included in the conda env, so cleanup out current conda env
91-
- set LIB=
92-
- set LIBPATH=
93-
- set INCLUDE=
94-
- set LIB_INC=
95-
- set
9683
# we can't build conda packages on 27 due to missing functools32, which is a recent
9784
# additional dependency for matplotlib
9885
- cmd: if [%CONDA_PY%] NEQ [27] %CMD_IN_ENV% conda build .\ci\conda_recipe

ci/conda_recipe/bld.bat

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,7 @@ if errorlevel 1 exit 1
44
copy %LIBRARY_LIB%\libpng_static.lib lib\png.lib
55
if errorlevel 1 exit 1
66

7-
set LIB=%LIB%;.\lib
8-
set LIBPATH=%LIBPATH%;.\lib
9-
set INCLUDE=%LIBRARY_INC%;%LIBRARY_INC%\freetype2;%INCLUDE%
7+
set MPLBASEDIRLIST=%LIBRARY_PREFIX%;.
108

119
:: debug...
1210
set

0 commit comments

Comments
 (0)