Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
bob
bob.extension
Commits
40d7dab1
Commit
40d7dab1
authored
Mar 25, 2014
by
André Anjos
💬
Browse files
Fix version requirement logic
parent
6fce2122
Changes
1
Hide whitespace changes
Inline
Side-by-side
xbob/extension/boost.py
View file @
40d7dab1
...
...
@@ -92,9 +92,12 @@ class boost:
if
not
candidates
:
raise
RuntimeError
(
"could not find any version of boost on the file system (looked at: %s)"
%
(
', '
.
join
(
candidates
)))
found
=
False
if
not
requirement
:
self
.
include_directory
=
candidates
[
0
]
self
.
version
=
boost_version
(
self
.
include_directory
)
found
=
True
else
:
...
...
@@ -112,8 +115,11 @@ class boost:
(
operator
==
'=='
and
available
==
required
):
self
.
include_directory
=
path
self
.
version
=
version
else
:
raise
RuntimeError
(
"could not find the required (%s) version of boost on the file system (looked at: %s)"
%
(
requirement
,
', '
.
join
(
candidates
)))
found
=
True
break
if
not
found
:
raise
RuntimeError
(
"could not find the required (%s) version of boost on the file system (looked at: %s)"
%
(
requirement
,
', '
.
join
(
candidates
)))
# normalize
self
.
include_directory
=
os
.
path
.
normpath
(
self
.
include_directory
)
...
...
Write
Preview
Supports
Markdown
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