Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix M1 build #4010

Merged
merged 8 commits into from
Jan 18, 2023
4 changes: 4 additions & 0 deletions build/pyinstaller/terminal.spec
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,10 @@ added_files = [
(os.path.join(pathex, "blib2to3", "PatternGrammar.txt"), "blib2to3"),
]


if is_darwin and os.path.exists(os.path.join(pathex, "xgboost")):
added_files.append((os.path.join(pathex, "xgboost"), "xgboost"))
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

should the hook replace this? @tehcoderer

Copy link
Contributor

@tehcoderer tehcoderer Jan 18, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

yes sir you can remove that cause it'll run with this
image


# Python libraries that are explicitly pulled into the bundle
hidden_imports = [
"sklearn.utils._cython_blas",
Expand Down