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

Support for system-site-packages #925

Open
Edgeworth opened this issue Mar 23, 2024 · 2 comments
Open

Support for system-site-packages #925

Edgeworth opened this issue Mar 23, 2024 · 2 comments

Comments

@Edgeworth
Copy link

In poetry, you can set system-site-packages=true in poetry.toml so virtualenvs are created with access to the system site packages directory. This can be useful if you have a complex package that does not install or work well in virtualenv.

For example, my use case is that I am using tensorflow both in python and via the C API, so to avoid issues I need the tensorflow version and build to be exactly the same between my OS and what python uses.

It looks like uv supports system-site-packages: astral-sh/uv#2038 astral-sh/uv#2101

Is this supported in rye? Maybe I have missed something. Thanks!

@ischaojie
Copy link
Contributor

Rye does not currently support it, but it seems to make sense. Rye may also need to provide a configuration to enable this option?

@Edgeworth
Copy link
Author

Thank you for working on this. Looks like in the latest iteration of the above PR, it can be specified via pyproject.toml per project. This definitely works for my use case.

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

2 participants