Skip to content

Commit 73d3282

Browse files
author
dse
committed
Fixed problem with --xplat build when mono does not installed.
1 parent 75e5231 commit 73d3282

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

setup.py

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -281,7 +281,13 @@ def _get_manifest(self, build_dir):
281281
return manifest
282282

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

0 commit comments

Comments
 (0)