This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author jaraco
Recipients eryksun, jaraco, paul.moore, steve.dower, tim.golden, zach.ware
Date 2020-05-22.20:11:53
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1590178313.17.0.643909984111.issue40732@roundup.psfhosted.org>
In-reply-to
Content
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.
History
Date User Action Args
2020-05-22 20:11:53jaracosetrecipients: + jaraco, paul.moore, tim.golden, zach.ware, eryksun, steve.dower
2020-05-22 20:11:53jaracosetmessageid: <1590178313.17.0.643909984111.issue40732@roundup.psfhosted.org>
2020-05-22 20:11:53jaracolinkissue40732 messages
2020-05-22 20:11:53jaracocreate