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

Portfolio binary bug fix #2700

Merged
merged 7 commits into from
Oct 4, 2022

Conversation

simmonsj330
Copy link
Contributor

@simmonsj330 simmonsj330 commented Oct 3, 2022

Description

Fixes #2564. Adds functionality to terminal.spec to remove specific binaries that are unused and throw an error.

Others

  • I have performed a self-review of my own code.
  • I have commented my code, particularly in hard-to-understand areas.

@simmonsj330 simmonsj330 added bug Fix bug build Build-related work labels Oct 3, 2022
@simmonsj330 simmonsj330 self-assigned this Oct 3, 2022
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")
Copy link
Collaborator

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?

Copy link
Contributor Author

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

Screen Shot 2022-10-03 at 7 09 46 PM

Copy link
Contributor

@Chavithra Chavithra left a 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

@simmonsj330 simmonsj330 merged commit d0c5c8e into OpenBB-finance:main Oct 4, 2022
@simmonsj330 simmonsj330 deleted the portfolio_binary_bug branch October 4, 2022 23:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Fix bug build Build-related work
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Bug] Portfolio issues warning on Installer
3 participants