summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRichard Ipsum <richard.ipsum@codethink.co.uk>2014-12-02 14:29:01 +0000
committerRichard Ipsum <richard.ipsum@codethink.co.uk>2014-12-02 14:29:01 +0000
commit79850a91ae255165c9f3cb46bdd4f258090defa4 (patch)
tree7508335884e73a046de3672e7810cc6362f8788b
parent2a33c2e996d1dfc49def9ceca6ecab30c9f97ad3 (diff)
downloadimport-79850a91ae255165c9f3cb46bdd4f258090defa4.tar.gz
pip should inherit parent's stdin
-rwxr-xr-xexts/pip.find_deps7
1 files changed, 1 insertions, 6 deletions
diff --git a/exts/pip.find_deps b/exts/pip.find_deps
index afed07b..a63e54a 100755
--- a/exts/pip.find_deps
+++ b/exts/pip.find_deps
@@ -251,12 +251,7 @@ def find_runtime_deps(source, name, version=None):
p = subprocess.Popen(['pip', 'install', '.',
'--list-dependencies=%s' % tmppath], cwd=source,
- stdout=subprocess.PIPE, stderr=subprocess.STDOUT,
- stdin=subprocess.PIPE)
-
- # We close stdin on parent side to prevent the child from blocking
- # if it reads on stdin
- p.stdin.close()
+ stdout=subprocess.PIPE, stderr=subprocess.STDOUT)
while True:
line = p.stdout.readline()