<div dir="ltr">Hi all,<div><br></div><div>I hit this really weird issue today and I&#39;m hoping someone on this list can help.</div><div><br></div><div>I&#39;m working on a Python program that will remotely run Heroku-style apps (pet experiment :-).</div><div><br></div><div>This program needs to:<br></div><div>1) download the app&#39;s source code archive (zip, tar, etc.);</div><div>2) unpack the application source archive;</div><div>3) create a new virtual environment;</div><div>4) install dependencies;</div><div>5) run the command specified in the Procfile.</div><div><br></div><div>I have something that works, but step #4 consistently fails in the test suite when run under Tox.</div><div><br></div><div>After a bit of digging, it seems that the virtual environment generated in step #3 is in a strange state: the activate script is not executable and pip is missing.</div><div><br></div><div>In the hope of understanding what&#39;s wrong, I got the simplest possible example that demonstrates the issue.  I have a Bash script that works, a simple Python script that works and a minimalist Tox project that fails.</div><div><br></div><div>I put up a project on GitHub with these in order to share them with anybody who might be able to help.   Here is the link:</div><div><br></div><div>- <a href="https://github.com/AndreLouisCaron/nested-venv-bug">https://github.com/AndreLouisCaron/nested-venv-bug</a></div><div><br></div><div>AFAICT, these recipes are all equivalent, but the Tox project fails for me (tried with Tox 1.9 and 2.3.1 with same results).</div><div><br></div><div>Since it only fails under Tox, I&#39;m assuming Tox is doing something that affects the behavior of virtual environment creation, but I can&#39;t figure out what.</div><div><br></div><div>If anybody can take a few minutes to check out the project, try the scripts and give me a few ideas, no matter how crazy they sound, I&#39;d be **really** grateful :-)</div><div><br></div><div>Thanks!</div><div><br></div><div>André</div></div>