diff --git a/pyproject.toml b/pyproject.toml index a421dd5..9fddfd5 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -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" -} \ No newline at end of file +environment = { PKG_CONFIG_PATH="C:/opt/64/lib/pkgconfig", CXX="g++", CC="gcc" } \ No newline at end of file diff --git a/tools/cibw_linux.sh b/tools/cibw_linux.sh new file mode 100644 index 0000000..d647400 --- /dev/null +++ b/tools/cibw_linux.sh @@ -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 \ No newline at end of file