Merge pull request #18269 from grpc/hanging-setuptools

Fix Hang in build_ext
reviewable/pr18052/r5^2
Richard Belleville 6 years ago committed by GitHub
commit 8caa54deb0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 3
      src/python/grpcio/commands.py

@ -219,9 +219,10 @@ class BuildExt(build_ext.build_ext):
"""
cc_test = subprocess.Popen(
['cc', '-x', 'c', '-std=c++11', '-'],
stdin=subprocess.PIPE,
stdout=subprocess.PIPE,
stderr=subprocess.PIPE)
_, cc_err = cc_test.communicate(input='int main(){return 0;}')
_, cc_err = cc_test.communicate(input=b'int main(){return 0;}')
return not 'invalid argument' in str(cc_err)
# This special conditioning is here due to difference of compiler

Loading…
Cancel
Save