<font size=2 face="sans-serif">+1!!! This is awesome. I *always*
ran into this was about to get find . -name "*.pyc" -delete
tattooed on the inside of my forearm. Now I don't have to. Thanks!!!</font>
<br>
<br><font size=2 face="sans-serif">--Brad</font>
<br><font size=2 face="sans-serif"><br>
</font>
<br><font size=2 face="sans-serif"><br>
Brad Topol, Ph.D.<br>
IBM Distinguished Engineer<br>
OpenStack<br>
(919) 543-0646<br>
Internet: btopol@us.ibm.com<br>
Assistant: Kendra Witherspoon (919) 254-0680</font>
<br>
<br>
<br>
<br><font size=1 color=#5f5f5f face="sans-serif">From:
</font><font size=1 face="sans-serif">Sean Dague <sean@dague.net></font>
<br><font size=1 color=#5f5f5f face="sans-serif">To:
</font><font size=1 face="sans-serif">"openstack-dev@lists.openstack.org"
<openstack-dev@lists.openstack.org>, </font>
<br><font size=1 color=#5f5f5f face="sans-serif">Date:
</font><font size=1 face="sans-serif">09/12/2014 07:40 AM</font>
<br><font size=1 color=#5f5f5f face="sans-serif">Subject:
</font><font size=1 face="sans-serif">[openstack-dev]
[all] PYTHONDONTWRITEBYTECODE=true in tox.ini</font>
<br>
<hr noshade>
<br>
<br>
<br><tt><font size=2>I assume you, gentle OpenStack developers, often find
yourself in a hair<br>
tearing out moment of frustration about why local unit tests are doing<br>
completely insane things. The code that it is stack tracing on is no<br>
where to be found, and yet it fails.<br>
<br>
And then you realize.... that part of oslo doesn't exist any more....<br>
except there are still pyc files laying around. Gah!<br>
<br>
I've proposed the following to Nova and Python novaclient -<br>
</font></tt><a href=https://review.openstack.org/#/c/121044/><tt><font size=2>https://review.openstack.org/#/c/121044/</font></tt></a><tt><font size=2><br>
<br>
Which sets PYTHONDONTWRITEBYTECODE=true in the unit tests.<br>
<br>
This prevents pyc files from being writen in your git tree (win!). It<br>
doesn't seem to impact what pip installs... and if anyone knows how to<br>
prevent those pyc files from getting created, that would be great.<br>
<br>
But it's something which hopefully causes less perceived developer<br>
fragility of the system.<br>
<br>
-Sean<br>
<br>
-- <br>
Sean Dague<br>
</font></tt><a href=http://dague.net/><tt><font size=2>http://dague.net</font></tt></a><tt><font size=2><br>
<br>
_______________________________________________<br>
OpenStack-dev mailing list<br>
OpenStack-dev@lists.openstack.org<br>
</font></tt><a href="http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev"><tt><font size=2>http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev</font></tt></a><tt><font size=2><br>
<br>
</font></tt>
<br>