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 2023/01/17 00:39:00 UTC

[jira] [Resolved] (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:all-tabpanel ]

Hyukjin Kwon resolved SPARK-42088.
----------------------------------
    Fix Version/s: 3.4.0
       Resolution: Fixed

Issue resolved by pull request 39603
[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
>            Assignee: zheju_he
>            Priority: Minor
>             Fix For: 3.4.0
>
>
> 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