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
Run tests in clean virtual environment [version without tox] #164
Conversation
4fd59fb
to
9470ca6
Compare
I've been running some more debugging test on this PR, and the problem seems to be something similar to pypa/virtualenv#620: the wrong shebang line somehow gets put into the Not sure why or how, though :-| |
@astrofrog Found a solution! https://travis-ci.org/YannickJadoul/cibuildwheel/builds/583880457 is succeeding with minimal changes! I just don't know why or how, but I also feel like I don't really want to know. Something ugly seems to be going on with this Here's the commit on my version of your branch. Feel free to take the commit (or just the changes) and add it here :-) I'd be up for using this PR instead of the one with tox (#162). |
A few more things I noticed:
|
Agree with @YannickJadoul comments - I also like this version better. We should keep the venv environment variables isolated from the rest of the program - that might be a |
I hope it's okay if I jump in here - the PRs are piling up so I'd like to get things merged if I can! Going to merge @YannickJadoul's commit and fix things up as per his comment. |
Looks good! One more thing: now we're not installing the wheel if it's not used for the tests, and I agree that building the virtual environment takes to long to just install the wheel without anything else. |
I think a wheel install is just checking the tags and unzipping the archive, so I'm not sure that's catching very much... unless anyone can report having caught problems at the |
Yeah, probably. So if there was no reason you had it installed outside of the |
🎉 merged! thanks @astrofrog & @YannickJadoul ! |
So the test configured in `CIBW_TEST_COMMAND` runs in a clean environment: pypa/cibuildwheel#164
So the test configured in `CIBW_TEST_COMMAND` runs in a clean environment: pypa/cibuildwheel#164
@joerick - This is an alternative to #162 that does not use tox - however I am not able to get all the CI services to pass currently.