Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit0863a61

Browse files
committed
Merge pull request#29 from tonyroberts/develop
simplify how the nuget packages are installed
2 parents8c97a81 +f682e3f commit0863a61

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-
fordirinos.listdir("src"):
179-
ifDEVTOOLS=="Mono"anddir=="clrmodule":
180-
continue
181-
ifDEVTOOLS!="Mono"anddir=="monoclr":
182-
continue
183-
184-
packages_cfg=os.path.join("src",dir,"packages.config")
185-
ifnotos.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
classPythonNET_InstallLib(install_lib):

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp