Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
Routhleck committed Aug 25, 2024
1 parent 24c21f2 commit 880357a
Show file tree
Hide file tree
Showing 2 changed files with 71 additions and 2 deletions.
3 changes: 1 addition & 2 deletions copy_so_macOS.sh
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
#! /bin/sh

pip install -r requirements.txt
pip install taichi
pip install taichi==1.7.2
chmod +x ./copy_so_macOS.py
python copy_so_macOS.py

Expand Down
70 changes: 70 additions & 0 deletions pyproject copy.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,70 @@
[tool.cibuildwheel]
build = "*"
skip = ""
test-skip = ""

archs = ["auto"]
build-frontend = "pip"
config-settings = {}
dependency-versions = "pinned"
environment = {}
environment-pass = []
build-verbosity = 1

before-all = ""
repair-wheel-command = ""

test-command = ""
before-test = ""
test-requires = []
test-extras = []

container-engine = "docker"

manylinux-x86_64-image = "manylinux2014"

[build-system]
requires = [
"setuptools==68.2.0",
"wheel",
"Cython",
"pybind11",
"setuptools_scm[toml]>=3.4",
"cmake",
"taichi==1.7.2",
]

build-backend = "setuptools.build_meta"

[project]
requires-python = ">=3.8,<=3.12"
name = "brainpylib"
version = "0.3.2"

[tool.cibuildwheel.linux]
before-all = "sh prepare_build_wheel_on_cuda.sh"
before-build = "sh copy_so_linux.sh"
#before-build = "pip install -r requirements-test.txt"
archs = ["x86_64"]
skip = ["pp*", "*-musllinux_x86_64"]
repair-wheel-command = """
export LD_LIBRARY_PATH=/project/brainpylib:$LD_LIBRARY_PATH &&
auditwheel repair -w {dest_dir} {wheel}
"""

[tool.cibuildwheel.macos]
before-build = "sh copy_so_macOS.sh"
archs = ["x86_64", "arm64"]
skip = ["pp*"]
repair-wheel-command = """
export LD_LIBRARY_PATH=/project/brainpylib:$LD_LIBRARY_PATH &&
delocate-wheel -w {dest_dir} -v {wheel}
"""

[tool.cibuildwheel.windows]
before-build = "copy_dll_windows.bat"
archs = ["AMD64", "x86"]
repair-wheel-command = """
set PATH=brainpylib;%PATH% && delvewheel repair -w {dest_dir} {wheel}
"""
skip = ["pp*", "*-win32"]

0 comments on commit 880357a

Please sign in to comment.