Skip to content

Commit 3d0363a

Browse files
include demo data and scripts in PyPI packaging
1 parent 94b7bb3 commit 3d0363a

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

setup.py

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -89,6 +89,13 @@ def get_cuda_version():
8989
},
9090
}
9191

92+
# collect all data and script files
93+
data_files = []
94+
for root, dirs, files in os.walk("lightning_pose/data"):
95+
data_files.extend([join(root, f) for f in files])
96+
for root, dirs, files in os.walk("lightning_pose/scripts"):
97+
data_files.extend([join(root, f) for f in files])
98+
9299

93100
setup(
94101
name="lightning-pose",
@@ -103,4 +110,6 @@ def get_cuda_version():
103110
author_email="danbider@gmail.com",
104111
url="https://github.com/danbider/lightning-pose",
105112
keywords=["machine learning", "deep learning", "computer_vision"],
113+
package_data={"lightning_pose": data_files},
114+
include_package_data=True,
106115
)

0 commit comments

Comments
 (0)