Replace distutils.sysconfig with sysconfig#28392
Replace distutils.sysconfig with sysconfig#28392lidizheng merged 3 commits intogrpc:masterfrom jjyao:jjyao/distutils
Conversation
|
|
|
Tag @lidizheng @gnossen as well. |
|
Docker Hub is down now, I will retrigger the tests when it's back-up. |
|
@lidizheng I think docker hub is back-up now :) |
There might be some Python 2 residual causing tests to fail (there is also an ongoing |
|
@jjyao can you fix the corresponding error msg? to as seen in my PR. This is just for consistency since distutils does not need to be installed as sysconfig is part of the default python installation now. However it is not for python2 I believe. Thus for the tests that are failing regarding python2 we may need to have a conditional that runs the old code with distutils. |
|
Oh, does grpc support python2? I thought it's >= 3.6 based on https://github.com/grpc/grpc/tree/master/src/python/grpcio. |
|
Nah, this looks like a script used by C/C++ build. I can take a look later. |
Thanks. I'm not familiar with the grpc build system so it would be great if you can provide some help here. |
|
Link to an existing issue: #28026 |
|
@lidizheng can you clarify on what is needed for this PR to be merged? Is getting the CI to pass a hard requirement? Just want to know since quite a few downstream projects are stuck at this issue and would like to know when this can be rolled out. |
Got it. If I get some bandwidth I'll see if I can help with #28026 and eliminating all python 2 code. The way we use grpc in our Bazel, a fix at head is just what we need. |
|
@jjyao Build related issues have been fixed, the Python 2 issue in Bazel is also fixed. Can you rebase this PR? |
|
@lidizheng Rebased. |
lidizheng
left a comment
There was a problem hiding this comment.
Thanks for making this update!
|
@gnossen PTAL. |
gnossen
left a comment
There was a problem hiding this comment.
Thanks for the contribution!
add patch for newer setuptools, can be removed once grpc 1.44 is release Why are these changes needed? With grpc updated to 1.43, one of the patches is not needed. Patch needed when building locally for newer setuptools version. See grpc/grpc#28392 for more details. Also needed as a prereq to #21221
add patch for newer setuptools, can be removed once grpc 1.44 is release Why are these changes needed? With grpc updated to 1.43, one of the patches is not needed. Patch needed when building locally for newer setuptools version. See grpc/grpc#28392 for more details. Also needed as a prereq to ray-project#21221
This is essentially tensorflow/tensorflow#51776 since
python_configure.bzlis modified from tensorflow.I basically copied two PRs from there: tensorflow/tensorflow#51782 and tensorflow/tensorflow#51865.
@donnadionne