torch-mlir/build_tools/python_deploy
Dmitry Babokin a980130676
Fix macOS package build (#3562)
Without `--no-build-isolation` pip invokes `setup.py` in fresh
environment, which doesn't have `torch` installed. But `setup.py` does
`import torch` to check PyTorch version, so the build crashes. At the
same time the script creates a disposable virtual environment with all
required dependencies specifically to run wheel build. Note that Linux
package build also runs with this option.


15cf7106c4/setup.py (L230)

This was introduced by this commit:
74f7a0c9d6

And looks like macOS builds were not running in CI ever since.

I also updated Python versions in `install_macos_deps.sh`.
2024-08-22 19:13:20 +05:30
..
.gitignore Add oneshot release snapshot for test/ondemand (#768) 2022-04-21 02:19:12 -07:00
build_linux_packages.sh build: Update Roll PyTorch version (#3548) 2024-07-19 21:38:57 +05:30
build_macos_packages.sh Fix macOS package build (#3562) 2024-08-22 19:13:20 +05:30
build_upload_m1_snapshot.sh build: improve robustness of cmake and shell scripts (#1018) 2022-07-06 14:39:30 -07:00
build_windows.ps1 build: Update Roll PyTorch version (#3548) 2024-07-19 21:38:57 +05:30
build_windows_ci.sh Re-organize project structure to separate PyTorch dependencies from core project. (#2542) 2023-11-02 19:45:55 -07:00
install_macos_deps.sh Fix macOS package build (#3562) 2024-08-22 19:13:20 +05:30