Add check for .pyo extension when creating site.py. #759

Merged
merged 1 commit into from Sep 19, 2015

Projects

None yet

2 participants

@hashstat

virtualenv fails when creating the environment's site.py for distributions with only optimized bytecode (only .pyo and no .pyc files). It ends up writing the .py file to site.pyo. This fix adds a check for .pyo extensions to resolve the issue.

@Ivoz Ivoz merged commit 68e39db into pypa:develop Sep 19, 2015

1 check passed

continuous-integration/travis-ci/pr The Travis CI build passed
Details
@Ivoz Ivoz added a commit that referenced this pull request Sep 19, 2015
@Ivoz Ivoz Changelog for #759 23545ed
@willingc willingc added a commit to willingc/virtualenv that referenced this pull request Oct 10, 2015
@Ivoz @willingc Ivoz + willingc Changelog for #759 fc553ce
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment