File tree Expand file tree Collapse file tree 1 file changed +4
-2
lines changed
Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -112,7 +112,9 @@ def _build_all_extensions_with_cmake(self):
112112 torch_dir = Path (torch .utils .cmake_prefix_path ) / "Torch"
113113 cmake_build_type = os .environ .get ("CMAKE_BUILD_TYPE" , "Release" )
114114 enable_cuda = os .environ .get ("ENABLE_CUDA" , "" )
115- torchcodec_disable_compile_warning_as_error = os .environ .get ("TORCHCODEC_DISABLE_COMPILE_WARNING_AS_ERROR" , "OFF" )
115+ torchcodec_disable_compile_warning_as_error = os .environ .get (
116+ "TORCHCODEC_DISABLE_COMPILE_WARNING_AS_ERROR" , "OFF"
117+ )
116118 python_version = sys .version_info
117119 cmake_args = [
118120 f"-DCMAKE_INSTALL_PREFIX={ self ._install_prefix } " ,
@@ -121,7 +123,7 @@ def _build_all_extensions_with_cmake(self):
121123 f"-DCMAKE_BUILD_TYPE={ cmake_build_type } " ,
122124 f"-DPYTHON_VERSION={ python_version .major } .{ python_version .minor } " ,
123125 f"-DENABLE_CUDA={ enable_cuda } " ,
124- f"-DTORCHCODEC_DISABLE_COMPILE_WARNING_AS_ERROR={ torchcodec_disable_compile_warning_as_error } "
126+ f"-DTORCHCODEC_DISABLE_COMPILE_WARNING_AS_ERROR={ torchcodec_disable_compile_warning_as_error } " ,
125127 ]
126128
127129 Path (self .build_temp ).mkdir (parents = True , exist_ok = True )
You can’t perform that action at this time.
0 commit comments