Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit a6fd3cc

Browse files
committed
Two changes for a release:
1. Increment the version to be 0.3 2. In the setup, copy all versions of the messenger.
1 parent 36939ae commit a6fd3cc

File tree

2 files changed

+8
-17
lines changed

2 files changed

+8
-17
lines changed

pymatbridge/version.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
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.

setup.py

Lines changed: 7 additions & 16 deletions
Original file line numberDiff line numberDiff 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")
3826
else:
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
4233
ver_file = os.path.join('pymatbridge', 'version.py')
4334
exec(open(ver_file).read())

0 commit comments

Comments
 (0)