Skip to content

Commit

Permalink
tool tweaks
Browse files Browse the repository at this point in the history
  • Loading branch information
peekxc committed Dec 5, 2023
1 parent 7fec1f1 commit ab1660e
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 10 deletions.
13 changes: 3 additions & 10 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -34,20 +34,13 @@ setup = ['--default-library=static']
test-requires = ["pytest", "pytest-cov", "pytest-benchmark"] # coverage-badge
test-command = ["coverage run --source={package} -m pytest {package}/tests", "coverage report -m"]
build-verbosity = 2
skip = "cp36-* cp37-* cp38-* pp* *_ppc64le *_i686 *_s390x"
skip = "cp36-* cp37-* pp* *_ppc64le *_i686 *_s390x"

[tool.cibuildwheel.macos]
before-build = "bash {project}/tools/cibw_macos.sh"
environment = {
CC = "/usr/local/opt/llvm/bin/clang"
CXX = "/usr/local/opt/llvm/bin/clang++"
}
environment = { CC="/usr/local/opt/llvm/bin/clang", CXX="/usr/local/opt/llvm/bin/clang++" }

[tool.cibuildwheel.windows]
# before-build = "sh tools/cibw_windows.sh"
before-build = "choco install rtools -y --no-progress --force --version=4.0.0.20220206 && set PATH=C:\\rtools40\\ucrt64\\bin\\;%PATH%"
environment = {
PKG_CONFIG_PATH = "C:/opt/64/lib/pkgconfig"
CXX = "g++",
CC = "gcc"
}
environment = { PKG_CONFIG_PATH="C:/opt/64/lib/pkgconfig", CXX="g++", CC="gcc" }
17 changes: 17 additions & 0 deletions tools/cibw_linux.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
#!/usr/bin/env bash

if [ -n "$(command -v yum)" ]; then
dng check-update
dnf update
yum install llvm-toolset
yum install openblas
yum install -y python3.9
yum install python39-devel
alias python=python3.9
elif [ -n "$(command -v apt-get)" ]; then
apt-get update -y
apt-get install -y clang libomp-dev
apt-get update -y
apt-get install -y libopenblas-dev
apt-get install -y python3-dev
fi

0 comments on commit ab1660e

Please sign in to comment.