File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff 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
2727mkdir lib || cmd /c " exit /b 0"
2828copy %LIBRARY_LIB% \zlibstatic.lib lib\z.lib
2929copy %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
3636python setup.py %TARGET%
You can’t perform that action at this time.
0 commit comments