Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(273)

Issue 1978693002: GN: Allow setting the path to Python (Closed)

Created:
4 years, 7 months ago by Petr Hosek
Modified:
4 years, 7 months ago
Reviewers:
Dirk Pranke, brettw
CC:
chromium-reviews, tfarina
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

GN: Allow setting the path to Python This allows setting the path to Python executable used by GN through a command line argument so that it can be overriden by the user. Committed: https://crrev.com/325472663a3576438dd275b2981d59764ea362fb Cr-Commit-Position: refs/heads/master@{#393683}

Patch Set 1 #

Patch Set 2 : Rename the switch to script-executable #

Total comments: 4

Patch Set 3 : Update the switch help message #

Patch Set 4 : Update the documentation #

Patch Set 5 : Rebase #

Unified diffs Side-by-side diffs Delta from patch set Stats (+101 lines, -18 lines) Patch
M tools/gn/docs/reference.md View 1 2 3 4 6 chunks +69 lines, -7 lines 0 comments Download
M tools/gn/setup.h View 1 chunk +1 line, -1 line 0 comments Download
M tools/gn/setup.cc View 1 2 chunks +15 lines, -10 lines 0 comments Download
M tools/gn/switches.h View 1 2 3 4 1 chunk +4 lines, -0 lines 0 comments Download
M tools/gn/switches.cc View 1 2 3 4 2 chunks +12 lines, -0 lines 0 comments Download

Messages

Total messages: 27 (8 generated)
Petr Hosek
4 years, 7 months ago (2016-05-13 00:39:19 UTC) #2
Petr Hosek
I wasn't sure whether to name the flag as "--python" or "--python-path" so I went ...
4 years, 7 months ago (2016-05-13 00:42:41 UTC) #3
Dirk Pranke
I think we were talking about this not actually being python-specific, so maybe --script-executable instead ...
4 years, 7 months ago (2016-05-13 00:58:18 UTC) #5
Petr Hosek
That'd be better as we plan to use that argument to change the interpreter to ...
4 years, 7 months ago (2016-05-13 01:03:37 UTC) #6
Dirk Pranke
On 2016/05/13 01:03:37, Petr Hosek wrote: > That'd be better as we plan to use ...
4 years, 7 months ago (2016-05-13 01:08:18 UTC) #7
Petr Hosek
I've renamed the switch to script-executable.
4 years, 7 months ago (2016-05-13 01:12:30 UTC) #8
brettw
lgtm https://codereview.chromium.org/1978693002/diff/20001/tools/gn/switches.cc File tools/gn/switches.cc (right): https://codereview.chromium.org/1978693002/diff/20001/tools/gn/switches.cc#newcode112 tools/gn/switches.cc:112: " By default GN uses Python to execute ...
4 years, 7 months ago (2016-05-13 17:03:44 UTC) #9
brettw
https://codereview.chromium.org/1978693002/diff/20001/tools/gn/switches.cc File tools/gn/switches.cc (right): https://codereview.chromium.org/1978693002/diff/20001/tools/gn/switches.cc#newcode265 tools/gn/switches.cc:265: INSERT_VARIABLE(Threads) Oh, also add here: INSERT_VARIABLE(ScriptExecutable) so it appears ...
4 years, 7 months ago (2016-05-13 17:04:15 UTC) #10
Petr Hosek
https://codereview.chromium.org/1978693002/diff/20001/tools/gn/switches.cc File tools/gn/switches.cc (right): https://codereview.chromium.org/1978693002/diff/20001/tools/gn/switches.cc#newcode112 tools/gn/switches.cc:112: " By default GN uses Python to execute scripts ...
4 years, 7 months ago (2016-05-13 18:13:47 UTC) #11
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1978693002/40001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1978693002/40001
4 years, 7 months ago (2016-05-13 21:32:28 UTC) #14
Dirk Pranke
On 2016/05/13 21:32:28, commit-bot: I haz the power wrote: > CQ is trying da patch. ...
4 years, 7 months ago (2016-05-13 21:36:55 UTC) #16
Petr Hosek
Done.
4 years, 7 months ago (2016-05-13 21:40:46 UTC) #17
Dirk Pranke
lgtm
4 years, 7 months ago (2016-05-13 22:02:26 UTC) #18
Dirk Pranke
On 2016/05/13 22:02:26, Dirk Pranke wrote: > lgtm looks like you need to rebase, though ...
4 years, 7 months ago (2016-05-13 22:03:53 UTC) #19
Petr Hosek
Done, looks good now.
4 years, 7 months ago (2016-05-13 22:42:09 UTC) #20
Dirk Pranke
On 2016/05/13 22:42:09, Petr Hosek wrote: > Done, looks good now. Very good. CQ away ...
4 years, 7 months ago (2016-05-13 23:09:20 UTC) #21
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1978693002/80001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1978693002/80001
4 years, 7 months ago (2016-05-13 23:15:25 UTC) #24
commit-bot: I haz the power
Committed patchset #5 (id:80001)
4 years, 7 months ago (2016-05-13 23:26:18 UTC) #25
commit-bot: I haz the power
4 years, 7 months ago (2016-05-13 23:28:49 UTC) #27
Message was sent while issue was closed.
Patchset 5 (id:??) landed as
https://crrev.com/325472663a3576438dd275b2981d59764ea362fb
Cr-Commit-Position: refs/heads/master@{#393683}

Powered by Google App Engine
This is Rietveld 408576698