@@ -79,9 +79,7 @@ def build_extension(self, ext: CMakeExtension):
7979 ]
8080
8181 if platform .system () == "Windows" :
82- cmake_args += [
83- f"-DCMAKE_LIBRARY_OUTPUT_DIRECTORY_{ cfg .upper ()} ={ extdir } "
84- ]
82+ cmake_args += [f"-DCMAKE_LIBRARY_OUTPUT_DIRECTORY_{ cfg .upper ()} ={ extdir } " ]
8583
8684 # Add macOS-specific CMake prefix paths for Homebrew dependencies
8785 if platform .system () == "Darwin" : # macOS
@@ -164,21 +162,21 @@ def build_extension(self, ext: CMakeExtension):
164162 print (f"Searching for TBB DLLs in { build_temp } ..." )
165163 # Look for tbb*.dll recursively
166164 tbb_dlls = list (build_temp .glob ("**/tbb*.dll" ))
167-
165+
168166 if tbb_dlls :
169167 print (f"Found TBB DLLs: { tbb_dlls } " )
170168 # We want to copy them to the 'dsf' package directory so we can load them in __init__.py
171169 # extdir is where dsf_cpp.pyd is (site-packages root usually)
172170 # We want site-packages/dsf/
173-
171+
174172 # self.build_lib is usually the root of the build (e.g. build/lib.win...)
175173 # So we can construct the path to dsf package
176174 dsf_pkg_dir = Path (self .build_lib ) / "dsf"
177175 dsf_pkg_dir .mkdir (parents = True , exist_ok = True )
178-
176+
179177 # Also copy to source directory for editable installs
180178 source_dsf_dir = Path (__file__ ).parent / "src" / "dsf"
181-
179+
182180 for dll in tbb_dlls :
183181 print (f"Copying { dll } to { dsf_pkg_dir } " )
184182 shutil .copy2 (dll , dsf_pkg_dir )
0 commit comments