Why do you remove .pyc files?
Re:Repository Structure and Python
by Pewpewarrows on Tuesday April 17, 2012 @07:44AM
(#3852140)
When doing a large refactoring or removing modules all-together, leftover .pyc or .pyo files can cause some very hard-to-identify import errors.
Re:Repository Structure and Python
by kenneth_reitz on Wednesday April 18, 2012 @07:37AM
(#3857452)
export PYTHONDONTWRITEBYTECODE=1
:)
For deployment I use fabric, but I have Make targets for the most used commands (again, it's nice to have completion). For example, these are two targets to deploy to my server and to my test machine:
I use either pytest or nosetests to run my tests, mainly to have better and colored output.I don't think you can use virtualenv(wrapper) without bash, but you can use use it with M-x ansi-term. But I got tired of trying to config emacs to run Python the way I wanted and now I edit my code an emacs and run the code in IPython in the terminal. Ipython's autoreload [0] is a huge help.
[0] http://ipython.org/ipython-doc/dev/config/extensions/autorel...