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
commit d47ee872677b0d260101aff8374784621ac7b7df Author: Vitaly Terentyev <[email protected]> AuthorDate: Wed Aug 20 17:35:12 2025 +0400 Run without distutils for Python 3.12 --- .../examples/complete/juliaset/juliaset/juliaset_test_it.py | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/sdks/python/apache_beam/examples/complete/juliaset/juliaset/juliaset_test_it.py b/sdks/python/apache_beam/examples/complete/juliaset/juliaset/juliaset_test_it.py index a2a3262a1fb..c84cb875f64 100644 --- a/sdks/python/apache_beam/examples/complete/juliaset/juliaset/juliaset_test_it.py +++ b/sdks/python/apache_beam/examples/complete/juliaset/juliaset/juliaset_test_it.py @@ -21,6 +21,7 @@ import logging import os +import sys import unittest import uuid @@ -47,12 +48,14 @@ class JuliaSetTestIT(unittest.TestCase): extra_args = { 'coordinate_output': coordinate_output, 'grid_size': self.GRID_SIZE, - 'setup_file': os.path.normpath( - os.path.join(os.path.dirname(__file__), '..', 'setup.py')), 'on_success_matcher': all_of(PipelineStateMatcher(PipelineState.DONE)), } - args = pipeline.get_full_options_as_args(**extra_args) + # distutils was removed from Python 3.12 + if sys.version_info < (3, 12): + extra_args['setup_file'] = os.path.normpath( + os.path.join(os.path.dirname(__file__), '..', 'setup.py')) + args = pipeline.get_full_options_as_args(**extra_args) juliaset.run(args)
