Skip to content

Commit 9c1bb54

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 9e4c7f9 commit 9c1bb54

File tree

3 files changed

+39
-3
lines changed

3 files changed

+39
-3
lines changed

.github/workflows/windows.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ jobs:
3131
with:
3232
path: ~/conda_pkgs_dir
3333
key: ${{ runner.os }}-conda-${{ env.CACHE_NUMBER }}-${{
34-
hashFiles('conda-envs/environment-dev-py38.yml') }}
34+
hashFiles('conda-envs/windows-environment-dev-py38.yml') }}
3535
- name: Cache multiple paths
3636
uses: actions/cache@v2
3737
env:
@@ -48,7 +48,7 @@ jobs:
4848
with:
4949
activate-environment: pymc3-dev-py38
5050
channel-priority: strict
51-
environment-file: conda-envs/environment-dev-py38.yml
51+
environment-file: conda-envs/windows-environment-dev-py38.yml
5252
use-only-tar-bz2: true # IMPORTANT: This needs to be set for caching to work properly!
5353
- name: Install-pymc3
5454
run: |
Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
name: pymc3-dev-py38
2+
channels:
3+
- conda-forge
4+
- defaults
5+
dependencies:
6+
# base dependencies (see install guide for Windows)
7+
- h5py>=2.7
8+
- libpython
9+
- mkl-service
10+
- m2w64-toolchain
11+
- numba
12+
- pip
13+
- python=3.8
14+
- python-graphviz
15+
- scipy
16+
# Extra stuff for dev, testing and docs build
17+
- ipython>=7.16
18+
- nbsphinx>=0.4
19+
- numpydoc>=0.9
20+
- pre-commit>=2.8.0
21+
- pytest-cov>=2.5
22+
- pytest>=3.0
23+
- recommonmark>=0.4
24+
- sphinx-autobuild>=0.7
25+
- sphinx>=1.5
26+
- watermark

scripts/generate_pip_deps_from_conda.py

Lines changed: 11 additions & 1 deletion
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

0 commit comments

Comments
 (0)