File tree 1 file changed +10
-0
lines changed
python/packaging/frontend_sdist
1 file changed +10
-0
lines changed Original file line number Diff line number Diff line change 16
16
#
17
17
18
18
import os
19
+ import platform
19
20
import subprocess
20
21
import sys
21
22
@@ -39,6 +40,15 @@ def run_pip_command(args, call_func):
39
40
return call_func ([os .path .join (sys .exec_prefix , "bin" , "pip" )] + args )
40
41
41
42
43
+ # check wheel availability using information from https://github.com/pypa/packaging/blob/23.1/src/packaging/markers.py#L175-L190
44
+ if sys .platform not in ("linux" , "win32" ):
45
+ raise RuntimeError ("TensorRT currently only builds wheels for Linux and Windows" )
46
+ if sys .implementation .name != "cpython" :
47
+ raise RuntimeError ("TensorRT currently only builds wheels for CPython" )
48
+ if platform .machine () not in ("x86_64" , "AMD64" ):
49
+ raise RuntimeError ("TensorRT currently only builds wheels for x86_64 processors" )
50
+
51
+
42
52
class InstallCommand (install ):
43
53
def run (self ):
44
54
# pip-inside-pip hack ref #3080
You can’t perform that action at this time.
0 commit comments