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 703ea8b755e custom build 703ea8b755e is described below commit 703ea8b755e26786118a29cd00dd9c7ea10e9b60 Author: Vitaly Terentyev <vitaly.terent...@akvelon.com> AuthorDate: Fri Aug 22 13:03:51 2025 +0400 custom build --- .../apache_beam/examples/complete/juliaset/setup.py | 17 +++++++++++++---- 1 file changed, 13 insertions(+), 4 deletions(-) diff --git a/sdks/python/apache_beam/examples/complete/juliaset/setup.py b/sdks/python/apache_beam/examples/complete/juliaset/setup.py index f8413a976d2..2aa8e607895 100644 --- a/sdks/python/apache_beam/examples/complete/juliaset/setup.py +++ b/sdks/python/apache_beam/examples/complete/juliaset/setup.py @@ -31,11 +31,20 @@ when running the workflow for remote execution. # using legacy behavior from distutils. # https://setuptools.readthedocs.io/en/latest/history.html#v48-0-0 from setuptools import setup, find_packages +from setuptools.command.build_py import build_py as _build_py +import subprocess + +class CustomBuild(_build_py): + def run(self): + # harmless demo command; ok to delete entirely + subprocess.check_call(["echo", "Custom command worked!"]) + super().run() setup( - name='juliaset', - version='0.0.1', - description='Julia set workflow package.', + name="juliaset", + version="0.0.1", + description="Julia set workflow package.", packages=find_packages(), - install_requires=[], # keep empty for staging + install_requires=[], # keep empty for staging (--no-isolation) + cmdclass={"build_py": CustomBuild}, # or drop cmdclass if not needed )