Skip to content

cuda.pathfinder should honor site.ENABLE_USER_SITE #1566

@leofang

Description

@leofang

As per the docs the flag site.ENABLE_USER_SITE should be checked prior to accessing site.getusersitepackages(). This line needs to change:

def find_sub_dirs_all_sitepackages(sub_dirs: Sequence[str]) -> list[str]:
return find_sub_dirs((site.getusersitepackages(), *site.getsitepackages()), sub_dirs)

Metadata

Metadata

Assignees

No one assigned

    Labels

    P1Medium priority - Should dobugSomething isn't workingcuda.pathfinderEverything related to the cuda.pathfinder module

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions