Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

site module missing PREFIXES attribute #408

Closed
k-dominik opened this issue Mar 3, 2022 · 0 comments
Closed

site module missing PREFIXES attribute #408

k-dominik opened this issue Mar 3, 2022 · 0 comments

Comments

@k-dominik
Copy link

Hi!

while trying to package an app with the latest dask version, I found that dask will try to access site.PREFIXES (relevant python docs, dask PR that introduces the access).

The site module provided by py2app currently doesn't contain this attribute.

Naively I would say that adding something along the lines of cpython site should do the trick? (Meaning I tried it locally and it worked, however, I am not sure that all cases that might occur are covered by that)

# from cpython Lib/site.py

# Prefixes for site-packages; add additional prefixes like /usr/local here
PREFIXES = [sys.prefix, sys.exec_prefix]

Happy to open a PR along these lines if you agree that this is the way to go.

Cheers

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant