mirror of
https://github.com/deepseek-ai/DeepGEMM
synced 2025-06-26 23:15:49 +00:00
add assert exists(src_dir)
Using assert, the condition os.path.exists(src_dir) is evaluated. If it’s False, the assertion fails, and an AssertionError is raised with the specified message.
This commit is contained in:
1
setup.py
1
setup.py
@@ -49,6 +49,7 @@ class CustomBuildPy(build_py):
|
||||
for d in third_party_include_dirs:
|
||||
dirname = d.split('/')[-1]
|
||||
src_dir = os.path.join(current_dir, d)
|
||||
assert os.path.exists(src_dir), f"Source directory {src_dir} does not exist."
|
||||
dst_dir = os.path.join(build_include_dir, dirname)
|
||||
|
||||
# Remove existing directory if it exists
|
||||
|
||||
Reference in New Issue
Block a user