@@ -35,3 +35,51 @@ include-package-data = false
3535
3636[tool .setuptools .dynamic ]
3737version = {attr = " pyscipopt._version.__version__" }
38+
39+ [tool .cibuildwheel ]
40+ skip =" pp*" # currently doesn't work with PyPy
41+
42+
43+ [tool .cibuildwheel .linux ]
44+ skip =" pp* cp36* cp37* *musllinux*"
45+ before-all = [
46+ " (apt-get update && apt-get install --yes wget) || yum install -y wget zlib libgfortran || brew install wget" ,
47+ " wget https://scip.zib.de/download/release/SCIP-9.0.0-Linux-x86_64.zip -O scip.zip" ,
48+ " unzip scip.zip" ,
49+ " mv scip_install scip"
50+ ]
51+ 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" }
52+
53+
54+ [tool .cibuildwheel .macos ]
55+ skip =" pp* cp36* cp37*"
56+ before-all = '''
57+ #!/bin/bash
58+ brew install wget zlib gcc
59+ if [[ $CIBW_ARCHS == *"arm"* ]]; then
60+ wget https://scip.zib.de/download/release/SCIP-9.0.0-Darwin-arm.zip -O scip.zip
61+ else
62+ wget https://scip.zib.de/download/release/SCIP-9.0.0-Darwin-x86_64.zip -O scip.zip
63+ fi
64+ unzip scip.zip
65+ mv scip_install src/scip
66+ '''
67+ environment = {SCIPOPTDIR =" $(pwd)/src/scip" , LD_LIBRARY_PATH =" $(pwd)/src/scip/lib:LD_LIBRARY_PATH" , DYLD_LIBRARY_PATH =" $(pwd)/src/scip/lib:$DYLD_LIBRARY_PATH" , PATH =" $(pwd)/src/scip/bin:$PATH" , PKG_CONFIG_PATH =" $(pwd)/src/scip/lib/pkgconfig:$PKG_CONFIG_PATH" }
68+ repair-wheel-command = [
69+ " delocate-listdeps {wheel}" ,
70+ " delocate-wheel --require-archs {delocate_archs} -w {dest_dir} {wheel}" ,
71+ ]
72+
73+
74+ [tool .cibuildwheel .windows ]
75+ skip =" pp* cp36* cp37*"
76+ before-all = [
77+ " choco install 7zip wget" ,
78+ " wget https://scip.zib.de/download/release/SCIP-9.0.0-win64-VS22.zip -O scip.zip" ,
79+ " \" C:\\ Program Files\\ 7-Zip\\ 7z.exe\" x \" scip.zip\" -o\" scip-test\" " ,
80+ " mv .\\ scip-test\\ scip_install .\\ test" ,
81+ " mv .\\ test .\\ scip"
82+ ]
83+ before-build = " pip install delvewheel"
84+ environment = { SCIPOPTDIR =' D:\\a\\PySCIPOpt\\PySCIPOpt\\scip' }
85+ repair-wheel-command = " delvewheel repair --add-path c:/bin;c:/lib;c:/bin/src;c:/lib/src;D:/a/PySCIPOpt/PySCIPOpt/scip/;D:/a/PySCIPOpt/PySCIPOpt/scip/lib/;D:/a/PySCIPOpt/PySCIPOpt/scip/bin/ -w {dest_dir} {wheel}"
0 commit comments