diff options
author | John Szakmeister <john@szakmeister.net> | 2012-11-28 11:11:53 -0500 |
---|---|---|
committer | John Szakmeister <john@szakmeister.net> | 2012-11-28 11:11:53 -0500 |
commit | 968bfb5bc600ce05c4fc74693284f55a8479ed92 (patch) | |
tree | 97ee03ca5b0d55a4bdebaa02cd30bf5ad203695a /nose/config.py | |
parent | 5829e8e77f87f55f19d86cb8626b52c58bbfabea (diff) | |
download | nose-968bfb5bc600ce05c4fc74693284f55a8479ed92.tar.gz |
Add the ability to skip byte-compiling the sources.
Diffstat (limited to 'nose/config.py')
-rw-r--r-- | nose/config.py | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/nose/config.py b/nose/config.py index e110b7a..fd39250 100644 --- a/nose/config.py +++ b/nose/config.py @@ -313,6 +313,9 @@ class Config(object): self.firstPackageWins = options.firstPackageWins self.configureLogging() + if not options.byteCompile: + sys.dont_write_bytecode = True + if options.where is not None: self.configureWhere(options.where) @@ -560,6 +563,11 @@ class Config(object): help="nose's importer will normally evict a package from sys." "modules if it sees a package with the same name in a different " "location. Set this option to disable that behavior.") + parser.add_option( + "--no-byte-compile", + action="store_false", default=True, dest="byteCompile", + help="Prevent nose from byte-compiling the source into .pyc files " + "while nose is scanning for and running tests.") self.plugins.loadPlugins() self.pluginOpts(parser) |