File tree Expand file tree Collapse file tree 1 file changed +10
-0
lines changed
python/packaging/frontend_sdist Expand file tree Collapse file tree 1 file changed +10
-0
lines changed Original file line number Diff line number Diff line change 1616#
1717
1818import os
19+ import platform
1920import subprocess
2021import sys
2122
@@ -39,6 +40,15 @@ def run_pip_command(args, call_func):
3940 return call_func ([os .path .join (sys .exec_prefix , "bin" , "pip" )] + args )
4041
4142
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+
4252class InstallCommand (install ):
4353 def run (self ):
4454 # pip-inside-pip hack ref #3080
You can’t perform that action at this time.
0 commit comments