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

Skip to content

Commit 1fb51ce

Browse files
committed
Appveyor: put miktex exe files into path for subprocess
Also make the copy more failsave...
1 parent 17868e4 commit 1fb51ce

1 file changed

Lines changed: 6 additions & 2 deletions

File tree

appveyor.yml

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -84,8 +84,8 @@ install:
8484
# Let the install prefer the static builds of the libs
8585
- set LIBRARY_LIB=%CONDA_PREFIX%\Library\lib
8686
- cmd: 'mkdir lib || cmd /c "exit /b 0"'
87-
- copy %LIBRARY_LIB%\zlibstatic.lib lib\z.lib
88-
- copy %LIBRARY_LIB%\libpng_static.lib lib\png.lib
87+
- copy /Y %LIBRARY_LIB%\zlibstatic.lib lib\z.lib
88+
- copy /Y %LIBRARY_LIB%\libpng_static.lib lib\png.lib
8989
# These z.lib / png.lib are not static versions but files which end up as
9090
# dependencies to the dll file. This is fine for the conda build, but not here
9191
# and for the wheels
@@ -113,6 +113,10 @@ test_script:
113113
# autoinstall latex packages (0=no, 1=autoinstall, 2=ask)
114114
# this adds this to the registry!
115115
- cmd: initexmf --set-config-value "[MPM]AutoInstall=1"
116+
# we need to put the real exe files into PATH as subprocess can't call bat files
117+
# this works for the "old" version of the miktex package, then next version should
118+
# not need it
119+
- set "PATH=%PATH%;%CONDA_PREFIX%\Library\miktex\miktex\bin"
116120
# missing packages on conda-forge for ffmpeg avconv mencoder imagemagick inkscape
117121
- cmd: conda install -q -c menpo ffmpeg # a repackaged version
118122
# This install sometimes failed randomly :-(

0 commit comments

Comments
 (0)