Skip to content

Commit

Permalink
fix: failing macos pypsa installation (PyPSA#1325)
Browse files Browse the repository at this point in the history
  • Loading branch information
lkstrp authored Sep 24, 2024
1 parent 0d1c36b commit e65ce91
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 11 deletions.
11 changes: 1 addition & 10 deletions .github/workflows/test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -76,18 +76,9 @@ jobs:
id: cache-env

- name: Update environment
if: steps.cache-env.outputs.cache-hit != 'true' && matrix.os != 'macos'
if: steps.cache-env.outputs.cache-hit != 'true'
run: conda env update -n pypsa-eur -f envs/environment.yaml

# Temporary fix for MacOS, since highspy with pypsa can not be resolved
- name: Update environment (macos specific)
if: steps.cache-env.outputs.cache-hit != 'true' && matrix.os == 'macos'
run: |
sed -i '' '/- pypsa/d' envs/environment.yaml # Remove pypsa from environment list
conda env update -n pypsa-eur -f envs/environment.yaml
pip install highspy
conda install -c conda-forge pypsa
- name: Install inhouse packages from master
if: matrix.inhouse == 'dev-inhouse-deps'
run: |
Expand Down
3 changes: 2 additions & 1 deletion envs/environment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,10 @@ dependencies:
- python>=3.8
- pip

- pypsa>=0.30.2
- atlite>=0.2.9
- linopy

- dask

# Dependencies of the workflow itself
Expand Down Expand Up @@ -62,4 +64,3 @@ dependencies:
- snakemake-executor-plugin-slurm
- snakemake-executor-plugin-cluster-generic
- highspy
- pypsa>=0.30.2

0 comments on commit e65ce91

Please sign in to comment.