[issue40732] New realpath breaks setuptools_scm
Jason R. Coombs
report at bugs.python.org
Fri May 22 16:11:53 EDT 2020
Jason R. Coombs <jaraco at jaraco.com> added the comment:
It seems the underlying reason the behavior fails is the (intended) difference resolving the empty path to a realpath when a symlink points to another volume. The failing routine invokes realpath early (https://github.com/pypa/setuptools_scm/blob/d7c122e14c9eaca96574dec0ea530ad7204965a9/src/setuptools_scm/file_finder.py#L19).
```
path master # pwd
C:\Users\jaraco\code\main\path
path master # py -3.7 -c "import os; print(os.path.realpath(''))"
C:\Users\jaraco\code\main\path
path master # py -3.8 -c "import os; print(os.path.realpath(''))"
\\vmware-host\Shared Folders\home\code\main\path
```
But that doesn't explain why this issue would not have been triggered on non-Windows systems.
----------
_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue40732>
_______________________________________
More information about the Python-bugs-list
mailing list