Skip to content

Commit

Permalink
Add mlir-python-extras only to python api wheels
Browse files Browse the repository at this point in the history
  • Loading branch information
hunhoffe committed Oct 11, 2024
1 parent b9de542 commit c3a90d4
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
9 changes: 3 additions & 6 deletions utils/mlir_aie_wheels/pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,10 @@ manylinux-aarch64-image = "manylinux_2_28"
manylinux-x86_64-image = "manylinux_2_28"

[tool.cibuildwheel.linux]
environment = { PATH = "/usr/lib/ccache:/usr/lib64/ccache:/usr/lib/ccache/bin:$PATH", PIP_NO_BUILD_ISOLATION = "false", HOST_MLIR_PYTHON_PACKAGE_PREFIX = "aie" }
environment = { PATH = "/usr/lib/ccache:/usr/lib64/ccache:/usr/lib/ccache/bin:$PATH", PIP_NO_BUILD_ISOLATION = "false" }
before-build = [
"{project}/scripts/docker_prepare_ccache.sh",
"pip install -r requirements.txt",
"pip install -r requirements_extras.txt",
"{project}/scripts/download_mlir.sh",
]
environment-pass = [
Expand All @@ -31,21 +30,19 @@ repair-wheel-command = [
]

[tool.cibuildwheel.macos]
environment = { PATH = "/usr/local/opt/ccache/libexec:$PATH", PIP_NO_BUILD_ISOLATION = "false", HOST_MLIR_PYTHON_PACKAGE_PREFIX = "aie" }
environment = { PATH = "/usr/local/opt/ccache/libexec:$PATH", PIP_NO_BUILD_ISOLATION = "false" }
before-build = [
"pip install -r requirements.txt",
"pip install -r requirements_extras.txt",
"{project}/scripts/download_mlir.sh",
]
repair-wheel-command = [
"delocate-wheel --require-archs {delocate_archs} -w {dest_dir} -v {wheel}"
]

[tool.cibuildwheel.windows]
environment = { PIP_NO_BUILD_ISOLATION = "false", HOST_MLIR_PYTHON_PACKAGE_PREFIX = "aie" }
environment = { PIP_NO_BUILD_ISOLATION = "false" }
before-build = [
"pip install delvewheel",
"pip install -r requirements.txt",
"pip install -r requirements_extras.txt",
"bash {project}\\scripts\\download_mlir.sh",
]
5 changes: 4 additions & 1 deletion utils/mlir_aie_wheels/python_bindings/pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
[tool.cibuildwheel]
environment = { PIP_NO_BUILD_ISOLATION = "false" }
environment = { PIP_NO_BUILD_ISOLATION = "false", HOST_MLIR_PYTHON_PACKAGE_PREFIX = "aie" }
build-verbosity = 3
build = "cp310-* cp311-* cp312-*"
manylinux-aarch64-image = "manylinux_2_28"
Expand All @@ -21,6 +21,7 @@ environment-pass = [
]
before-build = [
"pip install -r requirements.txt",
"pip install -r requirements_extras.txt",
"{project}/scripts/download_mlir.sh",
]
repair-wheel-command = [
Expand All @@ -30,6 +31,7 @@ repair-wheel-command = [
[tool.cibuildwheel.macos]
before-build = [
"pip install -r requirements.txt",
"pip install -r requirements_extras.txt",
"{project}/scripts/download_mlir.sh",
]
repair-wheel-command = [
Expand All @@ -40,5 +42,6 @@ repair-wheel-command = [
before-build = [
"pip install delvewheel",
"pip install -r requirements.txt",
"pip install -r requirements_extras.txt",
"bash {project}\\scripts\\download_mlir.sh",
]

0 comments on commit c3a90d4

Please sign in to comment.