File tree Expand file tree Collapse file tree 1 file changed +17
-0
lines changed Expand file tree Collapse file tree 1 file changed +17
-0
lines changed Original file line number Diff line number Diff line change 4
4
Behavior Quirks
5
5
===============
6
6
7
+ Bad Shebangs in Python Scripts
8
+ ==============================
9
+
10
+ Various Python scripts under ``install/bin/ `` (e.g. ``pip ``) have
11
+ shebangs looking like ``#!/build/out/python/install/bin/python3 ``.
12
+ This ``/build/out/ `` directory is where the distribution is built
13
+ from. Python is writing out shebangs for Python scripts with
14
+ that absolute path.
15
+
16
+ To work around this issue, you can mass rewrite the shebangs to
17
+ point the directory where the distribution is extracted/installed
18
+ to.
19
+
20
+ Alternatively, you can sometimes execute ``python3 -m <module> ``
21
+ to get equivalent functionality to what the installed script would
22
+ do. e.g. to run pip, ``python3 -m pip ... ``.
23
+
7
24
Backscape Key Doesn't work in Python REPL
8
25
=========================================
9
26
You can’t perform that action at this time.
0 commit comments