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

anaconda: fix for building in a virtualenv #1290

Merged
merged 1 commit into from
Nov 21, 2020

Conversation

davidhewitt
Copy link
Member

Using sys.base_prefix for anaconda detection works even when inside a virtualenv. Tested locally and confirmed working.

Also sys.base_prefix has been present since Python 3.3 so we don't need to check for AttributeError any more when using it.

@davidhewitt davidhewitt merged commit db78cd7 into PyO3:master Nov 21, 2020
@davidhewitt davidhewitt deleted the anaconda-virtualenv branch December 24, 2021 02:06
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

Successfully merging this pull request may close these issues.

1 participant