Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 68a3f2f

Browse files
committed
Call msbuild only on Mono in shell mode
1 parent 1fa1599 commit 68a3f2f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

pythonnet/setup.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -99,8 +99,8 @@ def build_extension(self, ext):
9999
]
100100

101101
self.announce("Building: %s" % " ".join(cmd))
102-
check_call(" ".join(cmd) + " /t:Clean", shell=True)
103-
check_call(" ".join(cmd) + " /t:Build", shell=True)
102+
check_call(" ".join(cmd + ["/t:Clean"]), shell=(True if DEVTOOLS=="Mono" else False))
103+
check_call(" ".join(cmd + ["/t:Build"]), shell=(True if DEVTOOLS=="Mono" else False))
104104

105105
if DEVTOOLS == "Mono":
106106
self._build_monoclr(ext)

0 commit comments

Comments
 (0)