Lines 4-15
Original version (without the check for test sessions) obtained from:
Link Here
|
4 |
|
4 |
|
5 |
https://github.com/OpenIndiana/oi-userland/commit/7d928fa26c0c5e4c29b4826fe78dc42401730529 |
5 |
https://github.com/OpenIndiana/oi-userland/commit/7d928fa26c0c5e4c29b4826fe78dc42401730529 |
6 |
|
6 |
|
7 |
--- src/setuptools_scm/file_finder_hg.py.orig 2021-10-20 09:29:52 UTC |
7 |
--- src/setuptools_scm/file_finder_hg.py.orig 2022-12-17 16:05:30 UTC |
8 |
+++ src/setuptools_scm/file_finder_hg.py |
8 |
+++ src/setuptools_scm/file_finder_hg.py |
9 |
@@ -13,7 +13,12 @@ def _hg_toplevel(path): |
9 |
@@ -22,7 +22,12 @@ def _hg_toplevel(path: str) -> str | None: |
10 |
universal_newlines=True, |
10 |
text=True, |
11 |
stderr=devnull, |
11 |
stderr=subprocess.DEVNULL, |
12 |
) |
12 |
) |
13 |
- return os.path.normcase(os.path.realpath(out.strip())) |
13 |
- return os.path.normcase(os.path.realpath(out.strip())) |
14 |
+ toplevel_path = os.path.normcase(os.path.realpath(out.strip())) |
14 |
+ toplevel_path = os.path.normcase(os.path.realpath(out.strip())) |
15 |
+ setup_py_path = os.path.join(toplevel_path, "setup.py") |
15 |
+ setup_py_path = os.path.join(toplevel_path, "setup.py") |