Skip to content

Commit 062f966

Browse files
committed
give VS build tools a try
1 parent 5e824a4 commit 062f966

File tree

2 files changed

+14
-1
lines changed

2 files changed

+14
-1
lines changed

.github/workflows/test.yml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -73,6 +73,18 @@ jobs:
7373
run: |
7474
micromamba install -n pmg -c conda-forge bader enumlib openff-toolkit packmol pygraphviz tblite --yes
7575
76+
- name: Install Visual Studio build tools on Windows
77+
# TODO: remove this, as install these just to build
78+
# a single package is too much
79+
if: matrix.config.os == 'windows-latest'
80+
run: |
81+
choco install visualstudio2022buildtools --include-optional
82+
choco install visualstudio2022-workload-vctools
83+
84+
- name: Setup MSVC for Windows
85+
if: matrix.config.os == 'windows-latest'
86+
uses: ilammy/msvc-dev-cmd@v1
87+
7688
- name: Install pymatgen and dependencies via uv
7789
run: |
7890
micromamba activate pmg

pyproject.toml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,8 @@ optional = [
102102
"ase>=3.23.0",
103103
"beautifulsoup4",
104104
# BoltzTraP2 build fails on Windows GitHub runners
105-
"BoltzTraP2>=24.9.4 ; platform_system != 'Windows'",
105+
# "BoltzTraP2>=24.9.4 ; platform_system != 'Windows'",
106+
"BoltzTraP2>=24.9.4",
106107
"chemview>=0.6",
107108
"chgnet>=0.3.8",
108109
"f90nml>=1.1.2",

0 commit comments

Comments
 (0)