tvalentyn commented on code in PR #28992:
URL: https://github.com/apache/beam/pull/28992#discussion_r1358861463


##########
sdks/python/apache_beam/runners/portability/stager.py:
##########
@@ -774,7 +774,7 @@ def _build_setup_package(setup_file,  # type: str
       if build_setup_args is None:
         # if build is installed in the user env, use it to
         # build the sdist else fallback to legacy setup.py sdist call.
-        if importlib.util.find_spec('build'):
+        if pkgutil.find_loader('build') is not None:

Review Comment:
   this is a deprecated method that will be removed in a future version of 
Python. 



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to