Skip to content

Commit 7d4bb12

Browse files
authored
Merge pull request #6266 from ladyada/main
msys at least breaks elsewhere now
2 parents 1f57443 + e5a613b commit 7d4bb12

File tree

2 files changed

+2
-9
lines changed

2 files changed

+2
-9
lines changed

mpy-cross/mpy-cross.mk

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -6,12 +6,7 @@ include ../py/mkenv.mk
66

77
# define main target
88

9-
ifeq ($(OS),Windows_NT)
10-
# Detect a MINGW32 build, and change the name of the final executable.
11-
PROG ?= mpy-cross.exe
12-
else
139
PROG ?= mpy-cross
14-
endif
1510

1611
# qstr definitions (must come before including py.mk)
1712
QSTR_DEFS = qstrdefsport.h

py/makeversionhdr.py

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -19,16 +19,14 @@ def get_version_info_from_git():
1919
# Note: git describe doesn't work if no tag is available
2020
try:
2121
git_tag = subprocess.check_output(
22-
[tools_describe],
23-
stderr=subprocess.STDOUT,
24-
universal_newlines=True,
22+
[tools_describe], stderr=subprocess.STDOUT, universal_newlines=True, shell=True
2523
).strip()
2624
except subprocess.CalledProcessError as er:
2725
if er.returncode == 128:
2826
# git exit code of 128 means no repository found
2927
return None
3028
git_tag = ""
31-
except OSError:
29+
except OSError as e:
3230
return None
3331
try:
3432
git_hash = subprocess.check_output(

0 commit comments

Comments
 (0)