1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60
|
@rem The cmd /C hack circumvents a regression where conda installs a conda.bat
@rem script in non-root environments.
set CONDA=cmd /C conda
set CONDA_INSTALL=%CONDA% install -q -y
set PIP_INSTALL=pip install -q
@echo on
@rem Deactivate any environment
call deactivate
@rem Update conda
%CONDA% update -q -y conda
@rem Display root environment (for debugging)
%CONDA% list
@rem Clean up any left-over from a previous build
%CONDA% remove --all -q -y -n %CONDA_ENV%
@rem Create test environment
@rem (note: no cytoolz as it seems to prevent faulthandler tracebacks on crash)
%CONDA% create -n %CONDA_ENV% -q -y ^
bokeh ^
click ^
cloudpickle ^
dask ^
dill ^
futures ^
lz4 ^
ipykernel ^
ipywidgets ^
joblib ^
jupyter_client ^
mock ^
msgpack-python ^
psutil ^
pytest ^
python=%PYTHON% ^
requests ^
toolz ^
tblib ^
tornado=5 ^
zict ^
-c conda-forge
call activate %CONDA_ENV%
%CONDA% uninstall -q -y --force dask joblib zict
%PIP_INSTALL% pip --upgrade
%PIP_INSTALL% git+https://github.com/dask/dask --upgrade
%PIP_INSTALL% git+https://github.com/joblib/joblib.git --upgrade
%PIP_INSTALL% git+https://github.com/dask/zict --upgrade
%PIP_INSTALL% pytest-repeat pytest-timeout pytest-faulthandler sortedcollections
@rem Display final environment (for reproducing)
%CONDA% list
%CONDA% list --explicit
where python
where pip
pip list
python -m site
|