Skip to content

Commit

Permalink
[Build] Refine Cython file copying logic in setup.py
Browse files Browse the repository at this point in the history
- Improve file existence check when copying Cython source files
- Use os.path.join to construct full path for more robust file checking
- Enhance file copying mechanism in TileLangBuilPydCommand
  • Loading branch information
LeiWang1999 committed Feb 22, 2025
1 parent 4fdf2aa commit f47cdce
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -242,7 +242,7 @@ def run(self):
target_dir = os.path.dirname(target_dir)
if not os.path.exists(target_dir):
os.makedirs(target_dir)
if not os.path.exists(target_dir):
if not os.path.exists(os.path.join(target_dir, os.path.basename(source_dir))):
# if not exists, copy the file
# as tox will copy the file to the build
# directory based on manifest file
Expand Down

0 comments on commit f47cdce

Please sign in to comment.