10000 Disable SourceLink VCS reading for now · pythonnet/pythonnet@94b1a71 · GitHub
[go: up one dir, main page]

Skip to content

Commit 94b1a71

Browse files
committed
Disable SourceLink VCS reading for now
Modern versions of pip use partial clones to speed the process up, which results in a repo format v1 instead of v0 (as a "normal" clone would do). SourceLink does not implement v1 so far, which results in a build failure. The given environment variable disables accessing the VCS for SourceLink during the Python package build. Fixes #1613.
1 parent 39f51fe commit 94b1a71

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

setup.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,8 @@
1111
PY_MAJOR = sys.version_info[0]
1212
PY_MINOR = sys.version_info[1]
1313

14+
# Disable SourceLink during the build until it can read repo-format v1, #1613
15+
os.environ["EnableSourceControlManagerQueries"] = "false"
1416

1517
class DotnetLib:
1618
def __init__(self, name, path, **kwargs):

0 commit comments

Comments
 (0)
0