Skip to content

Commit f38b83d

Browse files
committed
Fixed issue with installed modules with case sensitive name might be reported as missing
1 parent 0da1e36 commit f38b83d

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

mbed/mbed.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@
3333
# Default paths to Mercurial and Git
3434
hg_cmd = 'hg'
3535
git_cmd = 'git'
36-
ver = '0.5.1'
36+
ver = '0.5.2'
3737

3838
ignores = [
3939
# Version control folders
@@ -1145,7 +1145,7 @@ def post_action(self):
11451145
fname = 'requirements.txt'
11461146
try:
11471147
import pip
1148-
installed_packages = [package.project_name for package in pip.get_installed_distributions()]
1148+
installed_packages = [package.project_name.lower() for package in pip.get_installed_distributions()]
11491149
with open(os.path.join(mbed_os_path, fname), 'r') as f:
11501150
for line in f.read().splitlines():
11511151
pkg = re.sub(r'^([\w-]+).*$', r'\1', line).lower()
@@ -1158,6 +1158,7 @@ def post_action(self):
11581158

11591159
if len(missing):
11601160
warning(
1161+
"-------------------------------------------------------------------------------\n"
11611162
"The mbed build tools in this program require Python modules that are not installed.\n"
11621163
"This might prevent you from compiling your code or exporting to IDEs and other toolchains.\n"
11631164
"The missing Python modules are: %s\n"

setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ def read(fname):
1919
setup(
2020
name="mbed-cli",
2121
packages=["mbed"],
22-
version="0.5.1",
22+
version="0.5.2",
2323
url='http://github.com/ARMmbed/mbed-cli',
2424
author='ARM mbed',
2525
author_email='[email protected]',

0 commit comments

Comments
 (0)