Skip to content

Commit 3ee9f54

Browse files
committed
Monkey-patch interpreter short name for wheels.
1 parent 2a623df commit 3ee9f54

File tree

1 file changed

+18
-0
lines changed

1 file changed

+18
-0
lines changed

Lib/wheel.py

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
import os
2+
import sys
3+
4+
# Make the standard wheel, the real wheel module.
5+
# Need to keep a reference alive, or the module will loose all attributes.
6+
if "wheel" in sys.modules:
7+
_this_module = sys.modules["wheel"]
8+
del sys.modules["wheel"]
9+
10+
real_wheel_dir = os.path.join(os.path.dirname(__file__), "site-packages")
11+
sys.path.insert(0, real_wheel_dir)
12+
import wheel as _wheel
13+
14+
del sys.path[0]
15+
sys.modules["wheel"] = _wheel
16+
17+
import wheel.vendored.packaging.tags
18+
wheel.vendored.packaging.tags.INTERPRETER_SHORT_NAMES["nuitkapython"] = "np"

0 commit comments

Comments
 (0)