This is an automated email from the ASF dual-hosted git repository.

gurwls223 pushed a commit to branch branch-4.0
in repository https://gitbox.apache.org/repos/asf/spark.git


The following commit(s) were added to refs/heads/branch-4.0 by this push:
     new ec6c82354ee8 [SPARK-54015][PYTHON] Relax Py4J requirement to 
py4j>=0.10.9.7,<0.10.9.10
ec6c82354ee8 is described below

commit ec6c82354ee8377bfef9585b8351502e7146ce70
Author: Hyukjin Kwon <[email protected]>
AuthorDate: Fri Oct 24 07:48:24 2025 -0700

    [SPARK-54015][PYTHON] Relax Py4J requirement to py4j>=0.10.9.7,<0.10.9.10
    
    ### What changes were proposed in this pull request?
    
    Py4J py4j>=0.10.9.7,<0.10.9.10 is JVM compatible so we can actually use 
older versions as well (I released those Py4J versions). To make it easier to 
migrate to higher versions of Spark, this PR proposes the range.
    
    ### Why are the changes needed?
    
    To make it easier for legacy users to migrate to higher versions of Spark.
    
    ### Does this PR introduce _any_ user-facing change?
    
    Virtually no.
    
    ### How was this patch tested?
    
    Manually.
    
    ### Was this patch authored or co-authored using generative AI tooling?
    
    No.
    
    Closes #52721 from HyukjinKwon/SPARK-54015.
    
    Authored-by: Hyukjin Kwon <[email protected]>
    Signed-off-by: Dongjoon Hyun <[email protected]>
---
 python/packaging/classic/setup.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/python/packaging/classic/setup.py 
b/python/packaging/classic/setup.py
index da4d25cc908c..661ba5a8a7ed 100755
--- a/python/packaging/classic/setup.py
+++ b/python/packaging/classic/setup.py
@@ -344,7 +344,7 @@ try:
         license="http://www.apache.org/licenses/LICENSE-2.0";,
         # Don't forget to update python/docs/source/getting_started/install.rst
         # if you're updating the versions or dependencies.
-        install_requires=["py4j==0.10.9.9"],
+        install_requires=["py4j>=0.10.9.7,<0.10.9.10"],
         extras_require={
             "ml": ["numpy>=%s" % _minimum_numpy_version],
             "mllib": ["numpy>=%s" % _minimum_numpy_version],


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to