Skip to content

Commit 1bce42f

Browse files
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.
1 parent f4343ca commit 1bce42f

File tree

3 files changed

+51
-4
lines changed

3 files changed

+51
-4
lines changed

.github/workflows/windows.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ jobs:
3232
with:
3333
path: ~/conda_pkgs_dir
3434
key: ${{ runner.os }}-conda-${{ env.CACHE_NUMBER }}-${{
35-
hashFiles('conda-envs/environment-dev-py38.yml') }}
35+
hashFiles('conda-envs/windows-environment-dev-py38.yml') }}
3636
- name: Cache multiple paths
3737
uses: actions/cache@v2
3838
env:
@@ -49,7 +49,7 @@ jobs:
4949
with:
5050
activate-environment: pymc3-dev-py38
5151
channel-priority: strict
52-
environment-file: conda-envs/environment-dev-py38.yml
52+
environment-file: conda-envs/windows-environment-dev-py38.yml
5353
use-only-tar-bz2: true # IMPORTANT: This needs to be set for caching to work properly!
5454
- name: Install-pymc3
5555
run: |
Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
name: pymc3-dev-py38
2+
channels:
3+
- conda-forge
4+
- defaults
5+
dependencies:
6+
# base dependencies (see install guide for Windows)
7+
- aesara>=2.0.9
8+
- arviz>=0.11.2
9+
- cachetools>=4.2.1
10+
- dill
11+
- fastprogress>=0.2.0
12+
- h5py>=2.7
13+
- libpython
14+
- mkl-service
15+
- m2w64-toolchain
16+
- numba
17+
- numpy>=1.15.0
18+
- pandas>=0.24.0
19+
- pip
20+
- python=3.8
21+
- python-graphviz
22+
- scipy>1.4.1
23+
- typing-extensions>=3.7.4
24+
# Extra stuff for dev, testing and docs build
25+
- ipython>=7.16
26+
- myst-nb
27+
- nbsphinx>=0.4
28+
- numpydoc>=0.9
29+
- pre-commit>=2.8.0
30+
- pydata-sphinx-theme
31+
- pytest-cov>=2.5
32+
- pytest>=3.0
33+
- recommonmark>=0.4
34+
- sphinx-autobuild>=0.7
35+
- sphinx-panels
36+
- sphinx>=1.5
37+
- watermark

scripts/generate_pip_deps_from_conda.py

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,17 @@
4141

4242
import yaml
4343

44-
EXCLUDE = {"python", "libblas", "mkl-service", "python-graphviz"}
44+
EXCLUDE = {
45+
"pip",
46+
"python",
47+
"libblas",
48+
"libpython",
49+
"m2w64-toolchain",
50+
"mkl-service",
51+
"numba",
52+
"scipy",
53+
"python-graphviz",
54+
}
4555
RENAME = {}
4656

4757

@@ -117,7 +127,7 @@ def main(conda_fname, pip_fname):
117127
f"# This file is auto-generated by scripts/generate_pip_deps_from_conda.py, "
118128
"do not modify.\n# See that file for comments about the need/usage of each dependency.\n\n"
119129
)
120-
pip_content = header + "\n".join(pip_deps) + "\n"
130+
pip_content = header + "\n".join(sorted(pip_deps)) + "\n"
121131

122132
with open(pip_fname, "w") as pip_fd:
123133
pip_fd.write(pip_content)

0 commit comments

Comments
 (0)