Include entire sam3 package instead of just sam3 and sam3.model (#327)
Summary: there are several imports within the `sam3.model` package that reference other packages within `sam3` other than `sam3` and `sam3.model` (for example [here](https://github.com/facebookresearch/sam3/blob/main/sam3/model/sam3_tracker_base.py#L15)). This fixes the package structure so that you can `pip install` the package and `import sam3` Pull Request resolved: https://github.com/facebookresearch/sam3/pull/327 Reviewed By: haithamkhedr Differential Revision: D88950127 Pulled By: lematt1991 fbshipit-source-id: 3554512d304ccdf679a9af8606bbfe1f7f2a1cfb
This commit is contained in:
committed by
meta-codesync[bot]
parent
757bbb0206
commit
b26a5f330e
@@ -82,8 +82,12 @@ train = [
|
||||
"Homepage" = "https://github.com/facebookresearch/sam3"
|
||||
"Bug Tracker" = "https://github.com/facebookresearch/sam3/issues"
|
||||
|
||||
[tool.setuptools]
|
||||
packages = ["sam3", "sam3.model"]
|
||||
[tool.setuptools.packages.find]
|
||||
include = ["sam3*"]
|
||||
exclude = ["build*", "scripts*", "examples*"]
|
||||
|
||||
[tool.setuptools.package-data]
|
||||
sam3 = ["assets/*.txt.gz"]
|
||||
|
||||
[tool.setuptools.dynamic]
|
||||
version = {attr = "sam3.__version__"}
|
||||
|
||||
Reference in New Issue
Block a user