From 7b512cbfc1c9de6da187a0923787edbf10375ef4 Mon Sep 17 00:00:00 2001 From: Haziman Hashim Date: Thu, 16 Jun 2016 13:25:07 +0800 Subject: [PATCH 1/4] Update setup.py --- setup.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/setup.py b/setup.py index 75d72fe00..933092122 100644 --- a/setup.py +++ b/setup.py @@ -222,7 +222,7 @@ def _install_packages(self): nuget = os.path.join("tools", "nuget", "nuget.exe") use_shell = False if DEVTOOLS == "Mono": - nuget = "mono %s" % nuget + nuget = "mono %s -ConfigFile /home/ubuntu/.config/NuGet/NuGet.config" % nuget use_shell = True cmd = "%s restore pythonnet.sln -o packages" % nuget From a42a8620b40a621dbc35b6db6d2df9cda43e8805 Mon Sep 17 00:00:00 2001 From: Haziman Hashim Date: Thu, 16 Jun 2016 13:26:48 +0800 Subject: [PATCH 2/4] Update setup.py --- setup.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/setup.py b/setup.py index 933092122..7b9799d1b 100644 --- a/setup.py +++ b/setup.py @@ -222,10 +222,10 @@ def _install_packages(self): nuget = os.path.join("tools", "nuget", "nuget.exe") use_shell = False if DEVTOOLS == "Mono": - nuget = "mono %s -ConfigFile /home/ubuntu/.config/NuGet/NuGet.config" % nuget + nuget = "mono %s" % nuget use_shell = True - cmd = "%s restore pythonnet.sln -o packages" % nuget + cmd = "%s -ConfigFile /home/ubuntu/.config/NuGet/NuGet.config restore pythonnet.sln -o packages" % nuget self.announce("Installing packages: %s" % cmd) check_call(cmd, shell=use_shell) From 3e62b509758bc4956bfb01564f2f7b61e1c56858 Mon Sep 17 00:00:00 2001 From: Haziman Hashim Date: Thu, 16 Jun 2016 13:33:46 +0800 Subject: [PATCH 3/4] Update setup.py --- setup.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/setup.py b/setup.py index 7b9799d1b..5cf065858 100644 --- a/setup.py +++ b/setup.py @@ -225,7 +225,10 @@ def _install_packages(self): nuget = "mono %s" % nuget use_shell = True - cmd = "%s -ConfigFile /home/ubuntu/.config/NuGet/NuGet.config restore pythonnet.sln -o packages" % nuget + cmd_config = "%s config -ConfigFile /home/ubuntu/.config/NuGet/NuGet.Config" + cmd = "%s pythonnet.sln -o packages" % nuget + self.announce("Configuring NuGet") + check_call(cmd, shell=use_shell) self.announce("Installing packages: %s" % cmd) check_call(cmd, shell=use_shell) From ffe2884fb61a3e9a4daeaf5db953ea7725be8262 Mon Sep 17 00:00:00 2001 From: Haziman Hashim Date: Thu, 16 Jun 2016 13:34:47 +0800 Subject: [PATCH 4/4] Update setup.py --- setup.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/setup.py b/setup.py index 5cf065858..84c1be301 100644 --- a/setup.py +++ b/setup.py @@ -226,7 +226,7 @@ def _install_packages(self): use_shell = True cmd_config = "%s config -ConfigFile /home/ubuntu/.config/NuGet/NuGet.Config" - cmd = "%s pythonnet.sln -o packages" % nuget + cmd = "%s restore pythonnet.sln -o packages" % nuget self.announce("Configuring NuGet") check_call(cmd, shell=use_shell) self.announce("Installing packages: %s" % cmd)