Skip to content

Commit d29eab3

Browse files
committed
Nits
1 parent 60b01b8 commit d29eab3

File tree

1 file changed

+7
-6
lines changed

1 file changed

+7
-6
lines changed

src/torchcodec/__init__.py

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@
88

99
# Note: usort wants to put Frame and FrameBatch after decoders and samplers,
1010
# but that results in circular import.
11-
from ._core import core_library_path, ffmpeg_major_version
1211
from ._frame import AudioSamples, Frame, FrameBatch # usort:skip # noqa
1312
from . import decoders, encoders, samplers # noqa
1413

@@ -18,9 +17,11 @@
1817
except Exception:
1918
pass
2019

21-
# `torchcodec.cmake_prefix_path` is a Python-based way to programmatically
22-
# obtain the correct CMAKE_PREFIX_PATH value for the TorchCodec installation.
23-
# It can be used in a build system of a C++ application to ensure that CMake
24-
# can successfully find TorchCodec C++ libraries. This variable is exposed
25-
# as TorchCodec API.
20+
# cmake_prefix_path is needed for downstream cmake-based builds that use
21+
# torchcodec as a dependency to tell cmake where torchcodec is installed and where to find its
22+
# CMake configuration files.
23+
# Pytorch itself has a similar mechanism which we use in our setup.py!
2624
cmake_prefix_path = Path(__file__).parent / "share" / "cmake"
25+
# Similarly, these are exposed for downstream builds that use torchcodec as a
26+
# dependency.
27+
from ._core import core_library_path, ffmpeg_major_version # usort:skip

0 commit comments

Comments
 (0)