"docs/source/vscode:/vscode.git/clone" did not exist on "2cf4bd0acf479d8d51347b6b524aebd3fdcc8d9f"
Commit 25f0ab83 authored by Ehsan Azarnasab's avatar Ehsan Azarnasab
Browse files

only check cmake existence if building in required

parent 93818fd7
......@@ -77,7 +77,7 @@ def _get_options():
if opt_key:
sys.argv.remove(arg)
continue
if not arg.startswith('--'):
continue
......@@ -122,9 +122,6 @@ def _get_options():
options, cmake_config, cmake_path, cmake_extra = _get_options()
if cmake_path is None:
raise DistutilsSetupError("Cannot find cmake in the path. Please specify its path with --cmake parameter.")
try:
from Queue import Queue, Empty
except ImportError:
......@@ -305,6 +302,9 @@ class build(_build):
def build_dlib():
"""use cmake to build and install the extension
"""
if cmake_path is None:
raise DistutilsSetupError("Cannot find cmake in the path. Please specify its path with --cmake parameter.")
platform_arch = platform.architecture()[0]
log.info("Detected Python architecture: %s" % platform_arch)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment