Skip to content

Commit 4168979

Browse files
committed
try python -E to run scripts
1 parent e4243a0 commit 4168979

File tree

1 file changed

+1
-8
lines changed

1 file changed

+1
-8
lines changed

scripts/entry-point.py.in

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

3-
import os
43
import sys
5-
import sysconfig
64

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)
125

136
from cmake import ${program}
147

0 commit comments

Comments
 (0)