Skip to content

Commit 409e6a8

Browse files
Merge pull request tensorflow#51782 from KumaTea:master
PiperOrigin-RevId: 395093386 Change-Id: I6ef7de35d7327a81d4bf95169a91717706e5e94d
2 parents 36a8dba + 178fa5e commit 409e6a8

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

third_party/py/python_configure.bzl

+2-2
Original file line numberDiff line numberDiff line change
@@ -155,8 +155,8 @@ def _get_python_include(repository_ctx, python_bin):
155155
python_bin,
156156
"-c",
157157
"from __future__ import print_function;" +
158-
"from distutils import sysconfig;" +
159-
"print(sysconfig.get_python_inc())",
158+
"import sysconfig;" +
159+
"print(sysconfig.get_path('include'))",
160160
],
161161
error_msg = "Problem getting python include path.",
162162
error_details = ("Is the Python binary path set up right? " +

0 commit comments

Comments
 (0)