Message369639
It's because on Unix:
```
>>> os.path.relpath('/Users/jaraco/code/main/path/.flake8', '')
'.flake8'
```
But on Windows, relpath raises an error for the comparable call:
```
>>> os.path.relpath('\\\\vmware-host\\shared folders\\home\\code\\main\\path\\.flake8', '')
ValueError: path is on mount '\\\\vmware-host\\shared folders', start on mount 'C:'
```
So it seems it may not be a bug in Python, but merely a consequence of Python 3.8 honoring symlinks in realpath, and exposing the unfortunate weakness of resolving relative real paths when root volumes aren't in a shared namespace.
Does Python have any advice for downstream users running into this or similar issues? If they want cross-platform compatibility, must they avoid use of realpath? Do you have any tips specific to what setuptools_scm is doing? |
|
| Date |
User |
Action |
Args |
| 2020-05-22 20:25:18 | jaraco | set | recipients:
+ jaraco, paul.moore, tim.golden, zach.ware, eryksun, steve.dower |
| 2020-05-22 20:25:18 | jaraco | set | messageid: <1590179118.36.0.283535542527.issue40732@roundup.psfhosted.org> |
| 2020-05-22 20:25:18 | jaraco | link | issue40732 messages |
| 2020-05-22 20:25:17 | jaraco | create | |
|