Skip to content

Commit f3bf332

Browse files
committed
Formatting
1 parent ed11354 commit f3bf332

File tree

2 files changed

+6
-7
lines changed

2 files changed

+6
-7
lines changed

setup.py

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -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)

src/dsf/__init__.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
if sys.platform == "win32":
66
import glob
77
import ctypes
8+
89
# Look for tbb dlls in the same directory as this __init__.py
910
_dll_dir = os.path.dirname(__file__)
1011
for _dll in glob.glob(os.path.join(_dll_dir, "tbb*.dll")):

0 commit comments

Comments
 (0)