Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
tsoc
openmm
Commits
b3fe05e9
Commit
b3fe05e9
authored
Apr 12, 2012
by
Peter Eastman
Browse files
Tolerate errors uninstalling previous versions
parent
99b0f3bb
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
2 deletions
+5
-2
wrappers/python/setup.py
wrappers/python/setup.py
+5
-2
No files found.
wrappers/python/setup.py
View file @
b3fe05e9
...
@@ -13,7 +13,7 @@ import struct
...
@@ -13,7 +13,7 @@ import struct
from
distutils.core
import
setup
from
distutils.core
import
setup
MAJOR_VERSION_NUM
=
'4'
MAJOR_VERSION_NUM
=
'4'
MINOR_VERSION_NUM
=
'
0
'
MINOR_VERSION_NUM
=
'
1
'
BUILD_INFO
=
'0'
BUILD_INFO
=
'0'
def
reportError
(
message
):
def
reportError
(
message
):
...
@@ -180,7 +180,10 @@ def main():
...
@@ -180,7 +180,10 @@ def main():
macVersion
=
[
int
(
x
)
for
x
in
platform
.
mac_ver
()[
0
].
split
(
'.'
)]
macVersion
=
[
int
(
x
)
for
x
in
platform
.
mac_ver
()[
0
].
split
(
'.'
)]
if
tuple
(
macVersion
)
<
(
10
,
5
):
if
tuple
(
macVersion
)
<
(
10
,
5
):
reportError
(
"OpenMM requires Mac OS X Leopard (10.5) or better."
)
reportError
(
"OpenMM requires Mac OS X Leopard (10.5) or better."
)
uninstall
()
try
:
uninstall
()
except
:
pass
setupKeywords
=
buildKeywordDictionary
()
setupKeywords
=
buildKeywordDictionary
()
setup
(
**
setupKeywords
)
setup
(
**
setupKeywords
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment