west: Renamed cmake.py to zcmake.py

Renamed cmake.py to zcmake.py to prevent import conflict if cmake is
installed through pip.

Signed-off-by: Jan Van Winkel <jan.van_winkel@dxplore.eu>
This commit is contained in:
Jan Van Winkel 2019-05-04 14:44:56 +02:00 committed by Carles Cufí
parent 735b287243
commit 4d975dba79
3 changed files with 3 additions and 3 deletions

View file

@ -9,7 +9,7 @@ import subprocess
from west import log
from west.configuration import config
from cmake import DEFAULT_CMAKE_GENERATOR, run_cmake, run_build, CMakeCache
from zcmake import DEFAULT_CMAKE_GENERATOR, run_cmake, run_build, CMakeCache
from build_helpers import is_zephyr_build, find_build_dir, BUILD_DIR_DESCRIPTION
from zephyr_ext_common import Forceable

View file

@ -10,7 +10,7 @@ building Zephyr applications needed by multiple commands.
See build.py for the build command itself.
'''
import cmake
import zcmake
import os
from west import log
@ -51,7 +51,7 @@ def is_zephyr_build(path):
cache with a 'ZEPHYR_TOOLCHAIN_VARIANT' key.
'''
try:
cache = cmake.CMakeCache.from_build_dir(path)
cache = zcmake.CMakeCache.from_build_dir(path)
except FileNotFoundError:
cache = {}