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

Skip to content

Commit 839a9ed

Browse files
committed
Fix local windows build script due to conda changes
1 parent cc184bd commit 839a9ed

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

build_alllocal.cmd

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -17,20 +17,20 @@ IF [%1]==[] (
1717
echo Using user supplied target: %TARGET%
1818
)
1919

20-
IF NOT DEFINED CONDA_DEFAULT_ENV (
20+
IF NOT DEFINED CONDA_PREFIX (
2121
echo No Conda env activated: you need to create a conda env with the right packages and activate it!
2222
GOTO:eof
2323
)
2424

2525
:: copy the libs which have "wrong" names
26-
set LIBRARY_LIB=%CONDA_DEFAULT_ENV%\Library\lib
26+
set LIBRARY_LIB=%CONDA_PREFIX%\Library\lib
2727
mkdir lib || cmd /c "exit /b 0"
2828
copy %LIBRARY_LIB%\zlibstatic.lib lib\z.lib
2929
copy %LIBRARY_LIB%\libpng_static.lib lib\png.lib
3030

3131
:: Make the header files and the rest of the static libs available during the build
32-
:: CONDA_DEFAULT_ENV is a env variable which is set to the currently active environment path
33-
set MPLBASEDIRLIST=%CONDA_DEFAULT_ENV%\Library\;.
32+
:: CONDA_PREFIX is a env variable which is set to the currently active environment path
33+
set MPLBASEDIRLIST=%CONDA_PREFIX%\Library\;.
3434

3535
:: build the target
3636
python setup.py %TARGET%

0 commit comments

Comments
 (0)