Skip to content

build: better support for python3 systems#14737

Closed
bnoordhuis wants to merge 1 commit intonodejs:masterfrom
bnoordhuis:shpy
Closed

build: better support for python3 systems#14737
bnoordhuis wants to merge 1 commit intonodejs:masterfrom
bnoordhuis:shpy

Conversation

@bnoordhuis
Copy link
Copy Markdown
Member

@bnoordhuis bnoordhuis commented Aug 10, 2017

Improve support for systems where python is actually python3.

Not all systems have a python2 binary, so simply updating the shebang
won't work.

What we can do is apply some cleverness: start life as a shell script,
locate the python binary, then re-execute the script but this time as
python code.

Special care is taken to ensure that spaces in arguments are passed on
verbatim.

This would need to be applied to other python scripts as well but I figured
I'd start with a single script in case everyone hates the approach.

CI: https://ci.nodejs.org/job/node-test-pull-request/9594/

Loading
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

build Issues and PRs related to build files or the CI. python PRs and issues that require attention from people who are familiar with Python.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

10 participants