Created
December 22, 2011 07:10
-
-
Save tkfm-yamaguchi/1509326 to your computer and use it in GitHub Desktop.
imp.find_modules could not detect correct version of readline.py in virtualenv on windows. Then just skip it.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff -u a/virtualenv.py b/virtualenv.py | |
--- a/virtualenv.py Thu Dec 22 16:03:56 2011 | |
+++ b/virtualenv.py Thu Dec 22 16:02:49 2011 | |
@@ -1105,6 +1105,8 @@ | |
def copy_required_modules(dst_prefix): | |
import imp | |
for modname in REQUIRED_MODULES: | |
+ if modname == 'readline': | |
+ continue # imp.find_modules is nats for readline on windows. | |
if modname in sys.builtin_module_names: | |
logger.info("Ignoring built-in bootstrap module: %s" % modname) | |
continue |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment