Skip to content

Commit

Permalink
pyproject
Browse files Browse the repository at this point in the history
  • Loading branch information
mmghannam committed Nov 9, 2023
1 parent 7714b0c commit 43a3ab7
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 7 deletions.
7 changes: 0 additions & 7 deletions .github/workflows/build_wheels.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,13 +12,6 @@ jobs:

steps:
- uses: actions/checkout@v4

- name: Download SCIP
if: (matrix.os == 'ubuntu-latest') || (matrix.os == 'ubuntu-20.04')
run: |
wget https://github.com/mmghannam/scip/releases/download/v8.0.3/libscip-ubuntu.zip -O scip.zip
unzip scip.zip
echo SCIPOPTDIR=$PWD/scip_install >> $GITHUB_ENV

- name: Build wheels
uses: pypa/[email protected]
Expand Down
11 changes: 11 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,3 +1,14 @@
[build-system]
requires = ['setuptools', 'cython <3, >=0.21']
build-backend = "setuptools.build_meta"

[tool.cibuildwheel.linux]
before-all = [
"(apt-get update && apt-get install --yes wget) || yum install -y wget || brew install wget",
"wget https://github.com/mmghannam/scip/releases/download/v8.0.3/libscip-ubuntu.zip -O scip.zip",
"unzip scip.zip",
"unzip upload.zip",
"mv home/runner/work/scip/scip/ipopt/ scip"
]

environment = { SCIPOPTDIR="$(pwd)/scip", LD_LIBRARY_PATH="$(pwd)/scip/lib:LD_LIBRARY_PATH", DYLD_LIBRARY_PATH="$(pwd)/scip/lib:$DYLD_LIBRARY_PATH", PATH="$(pwd)/scip/bin:$PATH", PKG_CONFIG_PATH="$(pwd)/scip/lib/pkgconfig:$PKG_CONFIG_PATH"}

0 comments on commit 43a3ab7

Please sign in to comment.