We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4168979 commit acf9ef3Copy full SHA for acf9ef3
scripts/entry-point.py.in
@@ -1,7 +1,14 @@
1
-#!python -E
+#!python
2
3
+import os
4
import sys
5
+import sysconfig
6
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)
12
13
from cmake import ${program}
14
0 commit comments