Skip to content

Add pillow-simd as requirement if it is installed #368

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

Closed
wants to merge 1 commit into from
Closed

Add pillow-simd as requirement if it is installed #368

wants to merge 1 commit into from

Conversation

0phoff
Copy link
Contributor

@0phoff 0phoff commented Jun 7, 2018

As discussed in #367, this PR allows visdom to work with Pillow-simd if the end user has it installed.
What this PR does, is that upon installation it checks if pillow-simd is installed and adds it to the requirements if it is. Otherwise, regular pillow is added.
Pillow-simd is a drop-in replacement that uses the same namespace, so no further changes are required.

Disclaimer:
I did not figure this one out on my own, but saw this solution in pytorch/vision.
This solution might have some problems I am not aware of, as I am no guru when working with setuptools. One thing I do know, is that this will cause a problem when creating pip wheels, so that should be taken into consideration. (I dont think that this is a concern for this project)

@JackUrb
Copy link
Contributor

JackUrb commented Jun 7, 2018

Seems good to me! Thanks @0phoff for the fix and the detailed PR explanation.

Copy link

@facebook-github-bot facebook-github-bot left a comment

Choose a reason for hiding this comment

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

@JackUrb is landing this pull request. If you are a Facebook employee, you can view this diff on Phabricator.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants