You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@beam.apache.org by vt...@apache.org on 2025/08/21 07:46:13 UTC
(beam) branch fix-python-arm-postcommit updated: Do not import distutils
This is an automated email from the ASF dual-hosted git repository.
vterentev pushed a commit to branch fix-python-arm-postcommit
in repository https://gitbox.apache.org/repos/asf/beam.git
The following commit(s) were added to refs/heads/fix-python-arm-postcommit by this push:
new efd160f3d53 Do not import distutils
efd160f3d53 is described below
commit efd160f3d534127162137405e2964af88a72cfd0
Author: Vitaly Terentyev <vi...@akvelon.com>
AuthorDate: Thu Aug 21 11:46:00 2025 +0400
Do not import distutils
---
sdks/python/apache_beam/examples/complete/juliaset/setup.py | 6 ++++--
1 file changed, 4 insertions(+), 2 deletions(-)
diff --git a/sdks/python/apache_beam/examples/complete/juliaset/setup.py b/sdks/python/apache_beam/examples/complete/juliaset/setup.py
index e395036f685..8439300f754 100644
--- a/sdks/python/apache_beam/examples/complete/juliaset/setup.py
+++ b/sdks/python/apache_beam/examples/complete/juliaset/setup.py
@@ -34,7 +34,7 @@ import setuptools
# 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
+from setuptools.command.build_py import build_py as _build
# This class handles the pip install mechanism.
@@ -111,7 +111,9 @@ class CustomCommands(setuptools.Command):
# Note that the Python Dataflow containers come with numpy already installed
# so this dependency will not trigger anything to be installed unless a version
# restriction is specified.
-REQUIRED_PACKAGES = []
+REQUIRED_PACKAGES = [
+ 'numpy',
+]
setuptools.setup(
name='juliaset',