Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
ensure the path variable is from the same scope
  • Loading branch information
leofang committed Jul 22, 2025
commit 4ca551c01600f204dbda65cc663944c73f9d52b1
1 change: 1 addition & 0 deletions cuda_bindings/setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -288,6 +288,7 @@ def prep_extensions(sources, libraries):

# new path for the bindings from cybind
def rename_architecture_specific_files():
path = os.path.join("cuda", "bindings", "_internal")

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Note: this is a bug fix exposed by the new line 224. Previously, the path variable happened to be right (leaking from the loop variable at line 227), but it's not longer correct after we append one more item to path_list.

if sys.platform == "linux":
src_files = glob.glob(os.path.join(path, "*_linux.pyx"))
elif sys.platform == "win32":
Expand Down