Skip to content

Commit 7975c4a

Browse files
committed
Use Python 3 in gyp bindings
Python 3 is already used by gyp, and `python` binary is removed from e.g. macOS 13.2. Fixes RuntimeTools#653
1 parent 4862e68 commit 7975c4a

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

AUTHORS.md

+1
Original file line numberDiff line numberDiff line change
@@ -23,3 +23,4 @@ Authors ordered by first contribution:
2323
- Richard Waller (https://github.com/rwalle61)
2424
- Russell Howe (https://github.com/rhowe-gds)
2525
- Gaby Baghdadi (https://github.com/gabylb)
26+
- Alexey Kotlyarov (https://github.com/koterpillar)

binding.gyp

+3-3
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,8 @@
33
"srcdir%": "./src",
44
"agentcoredir%": "./omr-agentcore",
55
"nandir%": "<!(node -e \"try {require('nan')}catch (e){console.log(e)}\")",
6-
'build_id%': '.<!(["python", "./generate_build_id.py"])',
7-
'appmetricsversion%': '<!(["python", "./get_from_json.py", "./package.json", "version"])',
6+
'build_id%': '.<!(["python3", "./generate_build_id.py"])',
7+
'appmetricsversion%': '<!(["python3", "./get_from_json.py", "./package.json", "version"])',
88
"conditions": [
99
['OS=="aix"', {
1010
"SHARED_LIB_SUFFIX": ".a",
@@ -119,7 +119,7 @@
119119
'inputs': [ "<(srcdir)/appmetrics.cpp" ],
120120
'outputs': [ "<(INTERMEDIATE_DIR)/appmetrics.cpp" ],
121121
'action': [
122-
'python',
122+
'python3',
123123
'./replace_in_file.py',
124124
'<(srcdir)/appmetrics.cpp',
125125
'<(INTERMEDIATE_DIR)/appmetrics.cpp',

0 commit comments

Comments
 (0)