Commit 77bb52d
authored
Make
There are problems associated with `InterpreterOptions` being a string,
chiefly that it isn't safe to assume where individual Python interpreter
command line arguments begin and end simply by splitting the string on
space characters. This isn't so much of a concern while the value of
`InterpreterOptions` is just appended to the main .pex shebang in
please_pex, but it'll become more of a concern when we instead rely on a
native-code .pex preamble to invoke the interpreter because we'll be
passing arguments variadically to `execvp(3)`.
Make `InterpreterOptions` a repeatable configuration option and pass
each value to please_pex as a separate `--interpreter_options` command
line option (which itself also becomes repeatable). This isn't a
breaking change because the values passed via `--interpreter_options`
are for now ultimately just being stringified via a space-delimited join
and appended to the .pex shebang, but the distinction will become
meaningful when we implement a native-code .pex preamble.InterpreterOptions configuration option a list (#259)1 parent 2c54638 commit 77bb52d
File tree
5 files changed
+18
-10
lines changed- build_defs
- tools/please_pex
- pex
5 files changed
+18
-10
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
42 | 42 | | |
43 | 43 | | |
44 | 44 | | |
45 | | - | |
46 | | - | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
47 | 48 | | |
48 | 49 | | |
49 | 50 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
62 | 62 | | |
63 | 63 | | |
64 | 64 | | |
65 | | - | |
| 65 | + | |
| 66 | + | |
66 | 67 | | |
67 | 68 | | |
68 | 69 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
147 | 147 | | |
148 | 148 | | |
149 | 149 | | |
150 | | - | |
151 | | - | |
| 150 | + | |
| 151 | + | |
| 152 | + | |
152 | 153 | | |
153 | 154 | | |
154 | 155 | | |
| |||
270 | 271 | | |
271 | 272 | | |
272 | 273 | | |
273 | | - | |
| 274 | + | |
| 275 | + | |
274 | 276 | | |
275 | 277 | | |
276 | 278 | | |
| |||
746 | 748 | | |
747 | 749 | | |
748 | 750 | | |
| 751 | + | |
| 752 | + | |
| 753 | + | |
| 754 | + | |
749 | 755 | | |
750 | 756 | | |
751 | 757 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
47 | 47 | | |
48 | 48 | | |
49 | 49 | | |
50 | | - | |
| 50 | + | |
51 | 51 | | |
52 | 52 | | |
53 | 53 | | |
| |||
59 | 59 | | |
60 | 60 | | |
61 | 61 | | |
62 | | - | |
63 | | - | |
| 62 | + | |
| 63 | + | |
64 | 64 | | |
65 | 65 | | |
66 | 66 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
22 | 22 | | |
23 | 23 | | |
24 | 24 | | |
25 | | - | |
| 25 | + | |
26 | 26 | | |
27 | 27 | | |
28 | 28 | | |
| |||
0 commit comments