Skip to content

Conversation

@qued
Copy link
Contributor

@qued qued commented Jan 4, 2023

Having a non-pip dependency prevents unstructured-inference from being installed as a package from pypi, so this PR removes detectron2 from the setup.py dependencies. Also removed the code to fail the install if torch isn't installed - torch will be installed with layoutparser, and will be present when the user builds Detectron2 from source.

Instructions have been updated to reflect the changes.

Copy link
Contributor

@MthwRobinson MthwRobinson left a comment

Choose a reason for hiding this comment

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

Couple questions/comments:

  • Do you need to re-run make pip-compile now that detectron is removed from setup.py?
  • Should we add a requirements-detectron2.txt file to pin the detectron2 dependencies?

Copy link
Contributor

@MthwRobinson MthwRobinson left a comment

Choose a reason for hiding this comment

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

LGTM

@qued qued merged commit b8be2e2 into main Jan 4, 2023
@qued qued deleted the chore/remove-non-pip-dep branch January 4, 2023 17:32
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.

3 participants