Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix issue with absolute path with Python 3.13 on Windows
With Python 3.13 on Windows, `os.path.isabs()` no longer returns `True` for a path that starts with a slash. Thus, when the argument to `_make_relative()` is an absolute path, the return value starts with a slash on Python 3.13 and does not start with a slash on older Python versions. This causes the extension module build directory to be calculated incorrectly with Python 3.13 on Windows. Fix this by ensuring that the return value does not start with a slash.
- Loading branch information