File tree Expand file tree Collapse file tree 1 file changed +19
-9
lines changed Expand file tree Collapse file tree 1 file changed +19
-9
lines changed Original file line number Diff line number Diff line change 12
12
match = re .search ("__version__ = '(.*?)'" , f .read ())
13
13
package_version = match .group (1 )
14
14
15
+
15
16
# Copy the DLLs
17
+
18
+ # KLUSolve DLL
19
+ base_dll_path_out = 'dss/'
20
+ base_dll_path_in = '../dss_capi/lib/{}' .format (PLATFORM_FOLDER )
21
+
22
+ if sys .platform == 'win32' :
23
+ libklusolve = 'libklusolve'
24
+ else :
25
+ libklusolve = 'klusolve'
26
+
27
+ shutil .copy (
28
+ os .path .join (base_dll_path_in , DLL_PREFIX + libklusolve + DLL_SUFFIX ),
29
+ os .path .join (base_dll_path_out , DLL_PREFIX + libklusolve + DLL_SUFFIX )
30
+ )
31
+
32
+ # DSS_CAPI DLLs
16
33
for i , version in enumerate (DSS_VERSIONS ):
17
34
base_dll_path_in = '../dss_capi/lib/{}/{}' .format (PLATFORM_FOLDER , version )
18
- base_dll_path_out = 'dss/'
19
-
20
35
file_list = ['dss_capi_{}' .format (version )]
21
- if i == 0 :
22
- if sys .platform == 'win32' :
23
- file_list .append ('libklusolve' )
24
- else :
25
- file_list .append ('klusolve' )
26
-
36
+
27
37
for fn in file_list :
28
38
shutil .copy (
29
39
os .path .join (base_dll_path_in , DLL_PREFIX + fn + DLL_SUFFIX ),
30
40
os .path .join (base_dll_path_out , DLL_PREFIX + fn + DLL_SUFFIX )
31
41
)
32
42
33
-
43
+
34
44
extra_args = dict (package_data = {
35
45
'dss' : ['*{}' .format (DLL_SUFFIX )]
36
46
})
You can’t perform that action at this time.
0 commit comments