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

Clean up requirements #1768

Merged
merged 3 commits into from
Feb 20, 2019
Merged

Clean up requirements #1768

merged 3 commits into from
Feb 20, 2019

Conversation

fehiepsi
Copy link
Member

This PR cleans up requirements in setup.py and docs/requirement.txt files.

@fritzo Is it fine to drop requirement for numpy now?

setup.py Outdated
@@ -83,7 +84,6 @@
# add them to `docs/requirements.txt`
'contextlib2',
'graphviz>=0.8',
'numpy>=1.7',
Copy link
Member

Choose a reason for hiding this comment

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

We could have removed this if all pytorch builds shipped with numpy. The pytorch pip wheel does not install numpy, but will throw an ImportError without numpy, because there are parts of torch that call numpy. I don't see any harm in keeping this in the requirement since it should anyways be installed with pytorch, and our minimum version requirement is an old one.

Copy link
Member Author

Choose a reason for hiding this comment

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

Got it, thanks @neerajprad !

Copy link
Member

Choose a reason for hiding this comment

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

It's probably worth adding a comment explaining why we need the numpy requirement, since a code comment is more discoverable than a github comment 😉

@eb8680
Copy link
Member

eb8680 commented Feb 19, 2019

Why are the CodeCov comments back?

@pyro-ppl pyro-ppl deleted a comment from codecov-io Feb 19, 2019
contextlib2
cloudpickle>=0.3.1
Copy link
Member

Choose a reason for hiding this comment

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

@jpchen can you confirm we no longer need cloudpickle or observations?

Copy link
Member

Choose a reason for hiding this comment

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

yep LGTM. besides internal applications, i'm not sure which example was using cloudpickle in the first place...

contextlib2
cloudpickle>=0.3.1
Copy link
Member

Choose a reason for hiding this comment

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

yep LGTM. besides internal applications, i'm not sure which example was using cloudpickle in the first place...

graphviz>=0.8
observations>=0.1.4
Copy link
Member

Choose a reason for hiding this comment

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

i think this is still used in the AIR example from #500
@neerajprad should we move off this dependency ?

Copy link
Member Author

Choose a reason for hiding this comment

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

You are right, it seems that I miss that tutorial while using "grep".

Copy link
Member

Choose a reason for hiding this comment

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

This is indeed needed by a few tutorials, let us reinstate it back.

@neerajprad neerajprad merged commit e407934 into pyro-ppl:dev Feb 20, 2019
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.

5 participants