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

Ensure pip is installed #22

Merged
merged 9 commits into from
May 6, 2021
Merged

Ensure pip is installed #22

merged 9 commits into from
May 6, 2021

Conversation

bonjorno7
Copy link
Owner

@bonjorno7 bonjorno7 commented May 6, 2021

Also the install button updates Pillow now if it's already installed.
Oh and I scaled the example images down to 128x128, so they don't need to be scaled during load.

Also I changed the structure a little, it now uses early returns.
And 'PIL' is now stored as a variable instead of hardcoded in two places.
It works fine on my windows machine, but I'd like to see at least one test on linux too.
Now pip should install in the user location, which works without admin.
Also I'm adding upgrade to both calls to make sure everything is up to date (otherwise the user would have to manually uninstall things and reinstall them).
I split args into command and options because I think the line wrapping looked bad.
Makes more sense to check the result from this function than to call support_pillow afterwards.
Also I added some newlines.
So the user can easily update Pillow.
This replaces the checkbox icon on the button.
@bonjorno7 bonjorno7 requested a review from coreprocess May 6, 2021 13:55
bonjorno7 and others added 4 commits May 6, 2021 16:03
Install Pillow now makes sure that pip is installed first.
Whoops, for this example we actually want 128x128 images.
We agreed on "This could take a few minutes" (maximum of 20 minutes in the works success case).
@coreprocess coreprocess merged commit fd5bd88 into develop May 6, 2021
@coreprocess coreprocess deleted the ensure-pip branch May 6, 2021 19:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants