From 9c1bb541bc80ae69a4750cc773a7b98bfb65ced2 Mon Sep 17 00:00:00 2001 From: Michael Osthege Date: Thu, 17 Jun 2021 19:54:48 +0200 Subject: [PATCH] Create dedicated environment YML for Windows The install installation guide for Windows was recently updated after it was discovered that the combination of numba+scipy dependencies leads to the correct installation of BLAS dependencies. --- .github/workflows/windows.yml | 4 ++-- conda-envs/windows-environment-dev-py38.yml | 26 +++++++++++++++++++++ scripts/generate_pip_deps_from_conda.py | 12 +++++++++- 3 files changed, 39 insertions(+), 3 deletions(-) create mode 100644 conda-envs/windows-environment-dev-py38.yml diff --git a/.github/workflows/windows.yml b/.github/workflows/windows.yml index 8a81e97b21..c0ecbe8c64 100644 --- a/.github/workflows/windows.yml +++ b/.github/workflows/windows.yml @@ -31,7 +31,7 @@ jobs: with: path: ~/conda_pkgs_dir key: ${{ runner.os }}-conda-${{ env.CACHE_NUMBER }}-${{ - hashFiles('conda-envs/environment-dev-py38.yml') }} + hashFiles('conda-envs/windows-environment-dev-py38.yml') }} - name: Cache multiple paths uses: actions/cache@v2 env: @@ -48,7 +48,7 @@ jobs: with: activate-environment: pymc3-dev-py38 channel-priority: strict - environment-file: conda-envs/environment-dev-py38.yml + environment-file: conda-envs/windows-environment-dev-py38.yml use-only-tar-bz2: true # IMPORTANT: This needs to be set for caching to work properly! - name: Install-pymc3 run: | diff --git a/conda-envs/windows-environment-dev-py38.yml b/conda-envs/windows-environment-dev-py38.yml new file mode 100644 index 0000000000..ea8b0622c0 --- /dev/null +++ b/conda-envs/windows-environment-dev-py38.yml @@ -0,0 +1,26 @@ +name: pymc3-dev-py38 +channels: +- conda-forge +- defaults +dependencies: + # base dependencies (see install guide for Windows) +- h5py>=2.7 +- libpython +- mkl-service +- m2w64-toolchain +- numba +- pip +- python=3.8 +- python-graphviz +- scipy +# Extra stuff for dev, testing and docs build +- ipython>=7.16 +- nbsphinx>=0.4 +- numpydoc>=0.9 +- pre-commit>=2.8.0 +- pytest-cov>=2.5 +- pytest>=3.0 +- recommonmark>=0.4 +- sphinx-autobuild>=0.7 +- sphinx>=1.5 +- watermark diff --git a/scripts/generate_pip_deps_from_conda.py b/scripts/generate_pip_deps_from_conda.py index 04a764d57e..28047f44a3 100755 --- a/scripts/generate_pip_deps_from_conda.py +++ b/scripts/generate_pip_deps_from_conda.py @@ -41,7 +41,17 @@ import yaml -EXCLUDE = {"python", "libblas", "mkl-service", "python-graphviz"} +EXCLUDE = { + "pip", + "python", + "libblas", + "libpython", + "m2w64-toolchain", + "mkl-service", + "numba", + "scipy", + "python-graphviz", +} RENAME = {}