File tree Expand file tree Collapse file tree 1 file changed +7
-6
lines changed
Expand file tree Collapse file tree 1 file changed +7
-6
lines changed Original file line number Diff line number Diff line change 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
1211from ._frame import AudioSamples , Frame , FrameBatch # usort:skip # noqa
1312from . import decoders , encoders , samplers # noqa
1413
1817except 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!
2624cmake_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
You can’t perform that action at this time.
0 commit comments