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

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

zheju_he created SPARK-42088:
--------------------------------

             Summary: 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


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