fix: failing macos pypsa installation (#1325)

This commit is contained in:
Lukas Trippe 2024-09-24 10:26:03 +02:00 committed by GitHub
parent 0d1c36ba6e
commit e65ce91a73
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 3 additions and 11 deletions

View File

@ -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: |

View File

@ -10,8 +10,10 @@ dependencies:
- python>=3.8
- pip
- pypsa>=0.30.2
- atlite>=0.2.9
- linopy
- dask
# Dependencies of the workflow itself
@ -62,4 +64,3 @@ dependencies:
- snakemake-executor-plugin-slurm
- snakemake-executor-plugin-cluster-generic
- highspy
- pypsa>=0.30.2