From f682e3f0eed9baddaad593d9ae5b91d52a3e5de2 Mon Sep 17 00:00:00 2001 From: Tony Roberts Date: Wed, 19 Mar 2014 16:36:13 +0000 Subject: [PATCH] simplify how the nuget packages are installed --- pythonnet/setup.py | 16 +++------------- 1 file changed, 3 insertions(+), 13 deletions(-) diff --git a/pythonnet/setup.py b/pythonnet/setup.py index f59b6f682..fca7f8312 100644 --- a/pythonnet/setup.py +++ b/pythonnet/setup.py @@ -175,19 +175,9 @@ def _install_packages(self): nuget = "mono %s" % nuget use_shell = True - for dir in os.listdir("src"): - if DEVTOOLS == "Mono" and dir == "clrmodule": - continue - if DEVTOOLS != "Mono" and dir == "monoclr": - continue - - packages_cfg = os.path.join("src", dir, "packages.config") - if not os.path.exists(packages_cfg): - continue - - cmd = "%s install %s -o packages" % (nuget, packages_cfg) - self.announce("Installng packages for %s: %s" % (dir, cmd)) - check_call(cmd, shell=use_shell) + cmd = "%s restore pythonnet.sln -o packages" % nuget + self.announce("Installing packages: %s" % cmd) + check_call(cmd, shell=use_shell) class PythonNET_InstallLib(install_lib):