You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@spark.apache.org by "Hyukjin Kwon (Jira)" <ji...@apache.org> on 2020/03/24 07:36:00 UTC

[jira] [Created] (SPARK-31231) Support setuptools 46.1.0+ in PySpark packaging

Hyukjin Kwon created SPARK-31231:
------------------------------------

             Summary: Support setuptools 46.1.0+ in PySpark packaging
                 Key: SPARK-31231
                 URL: https://issues.apache.org/jira/browse/SPARK-31231
             Project: Spark
          Issue Type: Bug
          Components: PySpark
    Affects Versions: 2.4.5, 3.0.0, 3.1.0
            Reporter: Hyukjin Kwon


PIP packaging test started to fail (see https://amplab.cs.berkeley.edu/jenkins/job/SparkPullRequestBuilder/120218/testReport/) as of  setuptools 46.1.0 release.

In https://github.com/pypa/setuptools/issues/1424, they decided to don't keep the modes in {{package_data}}. In PySpark pip installation, we keep the executable scripts in {{package_data}} https://github.com/apache/spark/blob/master/python/setup.py#L199-L200, and expose their symbolic links as executable scripts.

So, the symbolic links (or copied scripts) executes the scripts copied from {{package_data}}, which didn't keep the modes:

{code}
/tmp/tmp.UmkEGNFdKF/3.6/bin/spark-submit: line 27: /tmp/tmp.UmkEGNFdKF/3.6/lib/python3.6/site-packages/pyspark/bin/spark-class: Permission denied
/tmp/tmp.UmkEGNFdKF/3.6/bin/spark-submit: line 27: exec: /tmp/tmp.UmkEGNFdKF/3.6/lib/python3.6/site-packages/pyspark/bin/spark-class: cannot execute: Permission denied
{code}

The current issue is being tracked at https://github.com/pypa/setuptools/issues/2041




--
This message was sent by Atlassian Jira
(v8.3.4#803005)

---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@spark.apache.org
For additional commands, e-mail: issues-help@spark.apache.org