Skip to content

Commit

Permalink
install pyscipopt --no-deps
Browse files Browse the repository at this point in the history
  • Loading branch information
jurgen-lentz committed Mar 8, 2024
1 parent a8c9276 commit 7b21cd9
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 8 deletions.
13 changes: 6 additions & 7 deletions .github/actions/setup-pyscipopt-action/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,14 +18,13 @@ runs:
- run: echo "PySCIPOpt_HASH=$(cd PySCIPOpt && git rev-parse HEAD)" >> $GITHUB_ENV
shell: bash

- name: Cache PySCIPOpt Build
uses: actions/cache@v2
with:
path: ~/PySCIPOpt_dist
key: ${{ runner.os }}-PySCIPOpt-${{ env.PySCIPOpt_HASH }}
#- name: Cache PySCIPOpt Build
# uses: actions/cache@v2
# with:
# path: ~/PySCIPOpt_dist
# key: ${{ runner.os }}-PySCIPOpt-${{ env.PySCIPOpt_HASH }}

- name: Build & Install PySCIPOpt
run: |
[ ! -f ~/PySCIPOpt_dist/*.whl ] && pip install wheel && python -m build --no-isolation --wheel --outdir ~/PySCIPOpt_dist/ PySCIPOpt/
pip install ~/PySCIPOpt_dist/*.whl
python -m pip install --no-deps .
shell: bash
3 changes: 3 additions & 0 deletions .github/workflows/build-package.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,9 @@ jobs:
- name: Prepare Python Environment
run: |
pip install -r requirements.txt
- name: Setup PySCIPOpt
uses: ./.github/actions/setup-pyscipopt-action

- name: Build & Install PyGCGOpt
run: |
Expand Down
2 changes: 1 addition & 1 deletion INSTALL.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ Note that the latest PyGCGOpt version is usually only compatible with the latest

|SCIP| PySCIPOpt | GCG | PyGCGOpt
|----|----|----|----|
9.0 | | 3.6.0 | 0.4.0 |
9.0 | 5.0.0 | 3.6.0 | 0.4.0 |
8.1 | 4.4 | 3.5.5 | 0.3.0 |
8.0 | 4.0 | 3.5.0 | 0.1.0 |
7.0 | 3.x | - | - |
Expand Down

0 comments on commit 7b21cd9

Please sign in to comment.