[ https://issues.apache.org/jira/browse/SPARK-42088?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Apache Spark reassigned SPARK-42088: ------------------------------------ Assignee: (was: Apache Spark) > 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-unsubscr...@spark.apache.org For additional commands, e-mail: issues-h...@spark.apache.org