You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@beam.apache.org by tv...@apache.org on 2022/07/29 17:35:50 UTC
[beam] branch master updated: Change _build import from setuptools to distutils (#22503)
This is an automated email from the ASF dual-hosted git repository.
tvalentyn pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/beam.git
The following commit(s) were added to refs/heads/master by this push:
new 815b0d3e560 Change _build import from setuptools to distutils (#22503)
815b0d3e560 is described below
commit 815b0d3e560d20096fadfa5c786213aaa987d0d1
Author: Anand Inguva <34...@users.noreply.github.com>
AuthorDate: Fri Jul 29 23:05:43 2022 +0530
Change _build import from setuptools to distutils (#22503)
* Change build from setuptools to distutils
* Fix lint
* Add comment on setuptools and distutils
---
sdks/python/apache_beam/examples/complete/juliaset/setup.py | 6 +++++-
1 file changed, 5 insertions(+), 1 deletion(-)
diff --git a/sdks/python/apache_beam/examples/complete/juliaset/setup.py b/sdks/python/apache_beam/examples/complete/juliaset/setup.py
index b65eb15a3f2..c3a9fe04376 100644
--- a/sdks/python/apache_beam/examples/complete/juliaset/setup.py
+++ b/sdks/python/apache_beam/examples/complete/juliaset/setup.py
@@ -30,7 +30,11 @@ when running the workflow for remote execution.
import subprocess
import setuptools
-from setuptools.command.build import build as _build # type: ignore
+
+# It is recommended to import setuptools prior to importing distutils to avoid
+# using legacy behavior from distutils.
+# https://setuptools.readthedocs.io/en/latest/history.html#v48-0-0
+from distutils.command.build import build as _build # isort:skip
# This class handles the pip install mechanism.