-
Notifications
You must be signed in to change notification settings - Fork 3.1k
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
Portfolio binary bug fix #2700
Portfolio binary bug fix #2700
Conversation
binary_to_remove = pathlib.Path( | ||
os.path.join(pathex, "_scs_direct.cpython-39-darwin.so") | ||
) | ||
print("Removing ARM64 Binary: _scs_direct.cpython-39-darwin.so") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is the print intentional here?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@DidierRLopes Yes. While not absolutely necessary, it provides extra clarification during the build procedure
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks ok to me.
Although I would avoid using both os.path
and Pathlib
in the same code:
pathex = os.path.join(os.path.dirname(os.__file__), "site-packages")
pathex = Path(__file__).parent / "site-packages" # THIS INSTEAD
Description
Fixes #2564. Adds functionality to terminal.spec to remove specific binaries that are unused and throw an error.
Others