We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 095599a commit 370a41aCopy full SHA for 370a41a
setup.py
@@ -196,6 +196,7 @@ def _write_version_files():
196
print("INFO: Didn't find sha. Is this a git repo?")
197
198
with open(_ROOT_DIR / "src/torchcodec/version.py", "w") as f:
199
+ f.write("# Note that this file is generated during install.\n")
200
f.write(f"__version__ = '{version}'\n")
201
202
src/torchcodec/__init__.py
@@ -10,6 +10,7 @@
10
from . import decoders, samplers # noqa
11
12
try:
13
+ # Note that version.py is generated during install.
14
from .version import __version__ # noqa: F401
15
except Exception:
16
pass
0 commit comments