10000 Merge pull request #572 from dmitriyse/monoclr_xplat_skip · sdpython/pythonnet@a6bba66 · GitHub
[go: up one dir, main page]

Skip to content
This repository was archived by the owner on Jul 22, 2023. It is now read-only.

Commit a6bba66

Browse files
authored
Merge pull request pythonnet#572 from dmitriyse/monoclr_xplat_skip
Fixed problem with --xplat build when mono does not installed.
2 parents f5a002f + 9d25e9c commit a6bba66

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

setup.py

Lines changed: 7 additions & 1 deletion
+
if DEVTOOLS == "dotnet":
Original file line numberDiff line numberDiff line change
@@ -280,7 +280,13 @@ def _get_manifest(self, build_dir):
280280
return manifest
281281

282282
def _build_monoclr(self):
283-
mono_libs = _check_output("pkg-config --libs mono-2", shell=True)
283+
try:
284+
mono_libs = _check_output("pkg-config --libs mono-2", shell=True)
285+
except:
286
287+
print("Skipping building monoclr module...")
288+
return
289+
raise
284290
mono_cflags = _check_output("pkg-config --cflags mono-2", shell=True)
285291
glib_libs = _check_output("pkg-config --libs glib-2.0", shell=True)
286292
glib_cflags = _check_output("pkg-config --cflags glib-2.0", shell=True)

0 commit comments

Comments
 (0)
0