You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@spark.apache.org by "Apache Spark (Jira)" <ji...@apache.org> on 2023/01/16 08:10:00 UTC

[jira] [Commented] (SPARK-42088) Running python3 setup.py sdist on windows reports a permission error

    [ https://issues.apache.org/jira/browse/SPARK-42088?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17677216#comment-17677216 ] 

Apache Spark commented on SPARK-42088:
--------------------------------------

User 'zekai-li' has created a pull request for this issue:
https://github.com/apache/spark/pull/39603

> Running python3 setup.py sdist on windows reports a permission error
> --------------------------------------------------------------------
>
>                 Key: SPARK-42088
>                 URL: https://issues.apache.org/jira/browse/SPARK-42088
>             Project: Spark
>          Issue Type: Bug
>          Components: Build
>    Affects Versions: 3.4.0
>            Reporter: zheju_he
>            Priority: Minor
>
> My system version is windows 10, and I can run setup.py with administrator permissions, so there will be no error. However, it may be troublesome for us to upgrade permissions with Windows Server, so we need to modify the code of setup.py to ensure no error. To avoid the hassle of compiling for the user, I suggest modifying the following code to enable the out-of-the-box effect
> {code:python}
> def _supports_symlinks():
>     """Check if the system supports symlinks (e.g. *nix) or not."""
>     return getattr(os, "symlink", None) is not None and ctypes.windll.shell32.IsUserAnAdmin() != 0 if sys.platform == "win32" else True
> {code}



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

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