Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
D
dlib
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
钟尚武
dlib
Commits
f2cb001c
Commit
f2cb001c
authored
May 23, 2018
by
Davis King
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Improved error messages.
parent
39a13298
Show 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):
...
@@ -117,13 +117,16 @@ class CMakeBuild(build_ext):
try
:
try
:
out
=
subprocess
.
check_output
([
'cmake'
,
'--version'
])
out
=
subprocess
.
check_output
([
'cmake'
,
'--version'
])
except
OSError
:
except
OSError
:
raise
RuntimeError
(
"CMake must be installed to build the following extensions: "
+
raise
RuntimeError
(
"
\n
*******************************************************************
\n
"
+
", "
.
join
(
e
.
name
for
e
in
self
.
extensions
))
" 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
)
return
re
.
search
(
r'version\s*([\d.]+)'
,
out
.
decode
())
.
group
(
1
)
def
run
(
self
):
def
run
(
self
):
cmake_version
=
self
.
get_cmake_version
()
if
platform
.
system
()
==
"Windows"
:
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"
)
raise
RuntimeError
(
"CMake >= 3.1.0 is required on Windows"
)
for
ext
in
self
.
extensions
:
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