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

make vision depend on pillow-simd if already installed #522

Merged
merged 2 commits into from
May 30, 2018
Merged

make vision depend on pillow-simd if already installed #522

merged 2 commits into from
May 30, 2018

Conversation

ngimel
Copy link

@ngimel ngimel commented May 29, 2018

No description provided.

@soumith soumith merged commit 5a0d079 into pytorch:master May 30, 2018
@soumith
Copy link
Member

soumith commented May 30, 2018

this is awesome!

facebook-github-bot pushed a commit to fossasia/visdom that referenced this pull request Jun 7, 2018
Summary:
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](pytorch/vision#522).
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)_
Closes #368

Differential Revision: D8314365

Pulled By: JackUrb

fbshipit-source-id: 9cc52eee5ad129263136a7d6c6cfa86e288e89eb
varunagrawal pushed a commit to varunagrawal/vision that referenced this pull request Jul 23, 2018
* make vision depend on pillow-simd if already installed

* actually make pillow-simd optional
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