Skip to content

Commit 39c4750

Browse files
Check dist-packages when checking for source installation (#413)
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
1 parent c8a384d commit 39c4750

2 files changed

Lines changed: 6 additions & 1 deletion

File tree

.changeset/heavy-lights-end.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"trackio": minor
3+
---
4+
5+
feat:Check `dist-packages` when checking for source installation

trackio/deploy.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ def _is_trackio_installed_from_source() -> bool:
4343
"""Check if trackio is installed from source/editable install vs PyPI."""
4444
try:
4545
trackio_file = trackio.__file__
46-
if "site-packages" not in trackio_file:
46+
if "site-packages" not in trackio_file and "dist-packages" not in trackio_file:
4747
return True
4848

4949
dist = importlib.metadata.distribution("trackio")

0 commit comments

Comments
 (0)