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

Cleanup Finch Python installation #473

Merged
merged 3 commits into from
Aug 29, 2021

Conversation

kylelaker
Copy link
Member

This generally improves the process we are using for downloading, extracting, and configuring
the Finch Python installation. We remove some unnecessary pycache files and properly set the
environment variables to prevent import errors and other problems when users actually try to
use the package.

Resolves: #450

@kylelaker kylelaker added the cs 101 Affects CS 101 packages label Aug 29, 2021
We actually always want to ensure that the `finch.install_path`
directory exists and now that we're using `checksum` on `get_url` that
won't execute if the hash matches. We can then selectively unarchive the
`zip` only when the download changed something. Even still, we may want
to eventually consider always unarchiving.
The contents that we're looking for are actually within the folder
within the zip (FinchPython120). We add this as a new variable that's
available (though it's rather unlikely to change) and use that for these
two environment variables.
Recent versions of the zip file have created a __pycache__ directory
that has `.pyc` files for `finch.py` and `finchconnection.py` for
CPython 3.6 and 3.9; however, we really probably want to avoid having
users actually use those .pyc files.
@ripleymj ripleymj merged commit ac2447b into jmunixusers:main Aug 29, 2021
@kylelaker kylelaker deleted the fix-finch-paths branch January 13, 2024 16:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
cs 101 Affects CS 101 packages
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Finch robots PYTHONPATH broken
2 participants