Mercurial > hg > orthanc-python
comparison Resources/SyncOrthancFolder.py @ 41:393d2da0722a
upgrade to Orthanc SDK 1.7.2
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Wed, 08 Jul 2020 14:34:59 +0200 |
parents | fd58eb5749ed |
children | 9e466631660a |
comparison
equal
deleted
inserted
replaced
40:1b6af7a317bf | 41:393d2da0722a |
---|---|
10 import stat | 10 import stat |
11 import urllib2 | 11 import urllib2 |
12 import subprocess | 12 import subprocess |
13 | 13 |
14 TARGET = os.path.join(os.path.dirname(__file__), 'Orthanc') | 14 TARGET = os.path.join(os.path.dirname(__file__), 'Orthanc') |
15 PLUGIN_SDK_VERSION = '1.5.7' | 15 PLUGIN_SDK_VERSION = '1.7.2' |
16 REPOSITORY = 'https://hg.orthanc-server.com/orthanc/raw-file' | 16 REPOSITORY = 'https://hg.orthanc-server.com/orthanc/raw-file' |
17 | 17 |
18 FILES = [ | 18 FILES = [ |
19 ('OrthancFramework/Resources/CMake/AutoGeneratedCode.cmake', 'CMake'), | 19 ('OrthancFramework/Resources/CMake/AutoGeneratedCode.cmake', 'CMake'), |
20 ('OrthancFramework/Resources/CMake/Compiler.cmake', 'CMake'), | 20 ('OrthancFramework/Resources/CMake/Compiler.cmake', 'CMake'), |
64 os.path.join(f[1], os.path.basename(f[0])) ]) | 64 os.path.join(f[1], os.path.basename(f[0])) ]) |
65 | 65 |
66 for f in SDK: | 66 for f in SDK: |
67 commands.append([ | 67 commands.append([ |
68 'Orthanc-%s' % PLUGIN_SDK_VERSION, | 68 'Orthanc-%s' % PLUGIN_SDK_VERSION, |
69 'Plugins/Include/%s' % f, | 69 'OrthancServer/Plugins/Include/%s' % f, |
70 'Sdk-%s/%s' % (PLUGIN_SDK_VERSION, f) | 70 'Sdk-%s/%s' % (PLUGIN_SDK_VERSION, f) |
71 ]) | 71 ]) |
72 | 72 |
73 | 73 |
74 pool = multiprocessing.Pool(10) # simultaneous downloads | 74 pool = multiprocessing.Pool(10) # simultaneous downloads |
75 pool.map(Download, commands) | 75 pool.map(Download, commands) |
76 | 76 |
77 | 77 |
78 # Patch the SDK | 78 if False: |
79 subprocess.check_call([ 'patch', '-p0', '-i', os.path.join | 79 # Patch the SDK |
80 (os.path.abspath(os.path.dirname(__file__)), | 80 subprocess.check_call([ 'patch', '-p0', '-i', os.path.join |
81 'OrthancCPlugin-%s.patch' % PLUGIN_SDK_VERSION) ], | 81 (os.path.abspath(os.path.dirname(__file__)), |
82 cwd = os.path.join(os.path.dirname(__file__), | 82 'OrthancCPlugin-%s.patch' % PLUGIN_SDK_VERSION) ], |
83 'Orthanc', | 83 cwd = os.path.join(os.path.dirname(__file__), |
84 'Sdk-%s' % PLUGIN_SDK_VERSION, 'orthanc')) | 84 'Orthanc', |
85 'Sdk-%s' % PLUGIN_SDK_VERSION, 'orthanc')) |