Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
OpenDAS
dlib
Commits
f2cb001c
Commit
f2cb001c
authored
May 23, 2018
by
Davis King
Browse files
Improved error messages.
parent
39a13298
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
3 deletions
+6
-3
setup.py
setup.py
+6
-3
No files found.
setup.py
View file @
f2cb001c
...
...
@@ -117,13 +117,16 @@ class CMakeBuild(build_ext):
try
:
out
=
subprocess
.
check_output
([
'cmake'
,
'--version'
])
except
OSError
:
raise
RuntimeError
(
"CMake must be installed to build the following extensions: "
+
", "
.
join
(
e
.
name
for
e
in
self
.
extensions
))
raise
RuntimeError
(
"
\n
*******************************************************************
\n
"
+
" CMake must be installed to build the following extensions: "
+
", "
.
join
(
e
.
name
for
e
in
self
.
extensions
)
+
"
\n
*******************************************************************
\n
"
)
return
re
.
search
(
r
'version\s*([\d.]+)'
,
out
.
decode
()).
group
(
1
)
def
run
(
self
):
cmake_version
=
self
.
get_cmake_version
()
if
platform
.
system
()
==
"Windows"
:
if
LooseVersion
(
self
.
get_
cmake_version
()
)
<
'3.1.0'
:
if
LooseVersion
(
cmake_version
)
<
'3.1.0'
:
raise
RuntimeError
(
"CMake >= 3.1.0 is required on Windows"
)
for
ext
in
self
.
extensions
:
...
...
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