Skip to content

Commit acf9ef3

Browse files
committed
Revert "try python -E to run scripts"
This reverts commit 4168979.
1 parent 4168979 commit acf9ef3

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

scripts/entry-point.py.in

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,14 @@
1-
#!python -E
1+
#!python
22

3+
import os
34
import sys
5+
import sysconfig
46

7+
# Scripts can be broken by pip's build isolation hacks
8+
# See: https://github.com/pypa/pip/blob/102d8187a1f5a4cd5de7a549fd8a9af34e89a54f/src/pip/_internal/build_env.py#L87
9+
pl = sysconfig.get_paths()['platlib']
10+
if pl not in sys.path:
11+
sys.path.append(pl)
512

613
from cmake import ${program}
714

0 commit comments

Comments
 (0)