File tree Expand file tree Collapse file tree 2 files changed +8
-17
lines changed
Expand file tree Collapse file tree 2 files changed +8
-17
lines changed Original file line number Diff line number Diff line change 44_version_major = 0
55_version_minor = 3
66_version_micro = '' # use '' for first of series, number for 1 and above
7- _version_extra = 'dev'
7+ _version_extra = '' #' dev'
88#_version_extra = '' # Uncomment this for full releases
99
1010# Construct full version string from these.
Original file line number Diff line number Diff line change @@ -21,23 +21,14 @@ def copy_bin(bin_path):
2121 else :
2222 return False
2323
24- if sys .platform == "darwin" :
25- if not copy_bin ("./messenger/mexmaci64/messenger.mexmaci64" ):
26- raise ValueError ("messenger.mexmaci64 is not built yet. Please build it yourself." )
27-
28- elif sys .platform == "linux2" :
29- if not copy_bin ("./messenger/mexa64/messenger.mexa64" ):
30- raise ValueError ("messenger.mexa64 is not built yet. Please build it yourself." )
31-
32- elif sys .platform in ["win32" , "cygwin" ]:
33- t1 = copy_bin ("./messenger/mexw64/messenger.mexw64" )
34- t2 = copy_bin ("./messenger/mexw32/messenger.mexw32" )
35- if not (t1 or t2 ):
36- raise ValueError ("Neither messenger.mexw32 or mex264 is built yet. Please build the appropriate one yourself" )
37-
24+ if sys .platform == "win32" :
25+ raise ValueError ("pymatbridge does not work on win32" )
3826else :
39- raise ValueError ("Unknown platform" )
40-
27+ for copy_this in ["./messenger/mexmaci64/messenger.mexmaci64" ,
28+ "./messenger/mexa64/messenger.mexa64" ,
29+ "./messenger/mexw64/messenger.mexw64" ]:
30+ copy_bin (copy_this )
31+
4132# Get version and release info, which is all stored in pymatbridge/version.py
4233ver_file = os .path .join ('pymatbridge' , 'version.py' )
4334exec (open (ver_file ).read ())
You can’t perform that action at this time.
0 commit comments