[openstack-dev] [all] PYTHONDONTWRITEBYTECODE=true in tox.ini
Sean Dague
sean at dague.net
Fri Sep 12 11:39:25 UTC 2014
I assume you, gentle OpenStack developers, often find yourself in a hair
tearing out moment of frustration about why local unit tests are doing
completely insane things. The code that it is stack tracing on is no
where to be found, and yet it fails.
And then you realize.... that part of oslo doesn't exist any more....
except there are still pyc files laying around. Gah!
I've proposed the following to Nova and Python novaclient -
https://review.openstack.org/#/c/121044/
Which sets PYTHONDONTWRITEBYTECODE=true in the unit tests.
This prevents pyc files from being writen in your git tree (win!). It
doesn't seem to impact what pip installs... and if anyone knows how to
prevent those pyc files from getting created, that would be great.
But it's something which hopefully causes less perceived developer
fragility of the system.
-Sean
--
Sean Dague
http://dague.net
More information about the OpenStack-dev
mailing list