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

Skip to content

Commit 0863a61

Browse files
committed
Merge pull request #29 from tonyroberts/develop
simplify how the nuget packages are installed
2 parents 8c97a81 + f682e3f commit 0863a61

File tree

1 file changed

+3
-13
lines changed

1 file changed

+3
-13
lines changed

pythonnet/setup.py

Lines changed: 3 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -175,19 +175,9 @@ def _install_packages(self):
175175
nuget = "mono %s" % nuget
176176
use_shell = True
177177

178-
for dir in os.listdir("src"):
179-
if DEVTOOLS == "Mono" and dir == "clrmodule":
180-
continue
181-
if DEVTOOLS != "Mono" and dir == "monoclr":
182-
continue
183-
184-
packages_cfg = os.path.join("src", dir, "packages.config")
185-
if not os.path.exists(packages_cfg):
186-
continue
187-
188-
cmd = "%s install %s -o packages" % (nuget, packages_cfg)
189-
self.announce("Installng packages for %s: %s" % (dir, cmd))
190-
check_call(cmd, shell=use_shell)
178+
cmd = "%s restore pythonnet.sln -o packages" % nuget
179+
self.announce("Installing packages: %s" % cmd)
180+
check_call(cmd, shell=use_shell)
191181

192182

193183
class PythonNET_InstallLib(install_lib):

0 commit comments

Comments
 (0)