Skip to content

Commit 370a41a

Browse files
authored
Add notes that version is generated during install (pytorch#386)
1 parent 095599a commit 370a41a

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

setup.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -196,6 +196,7 @@ def _write_version_files():
196196
print("INFO: Didn't find sha. Is this a git repo?")
197197

198198
with open(_ROOT_DIR / "src/torchcodec/version.py", "w") as f:
199+
f.write("# Note that this file is generated during install.\n")
199200
f.write(f"__version__ = '{version}'\n")
200201

201202

src/torchcodec/__init__.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@
1010
from . import decoders, samplers # noqa
1111

1212
try:
13+
# Note that version.py is generated during install.
1314
from .version import __version__ # noqa: F401
1415
except Exception:
1516
pass

0 commit comments

Comments
 (0)