11##
2- # Copyright 2017-2025 Ghent University
2+ # Copyright 2017-2024 Ghent University
33#
44# This file is part of EasyBuild,
55# originally created by the HPC team of Ghent University (http://ugent.be/hpc/en),
@@ -91,11 +91,15 @@ def extensions_step(self):
9191 super ().extensions_step ()
9292
9393 pyver = '' .join (get_software_version ('Python' ).split ('.' )[:2 ])
94- whls = [
95- os .path .join ('graphsurgeon' , 'graphsurgeon-*-py2.py3-none-any.whl' ),
96- os .path .join ('uff' , 'uff-*-py2.py3-none-any.whl' ),
97- os .path .join ('python' , 'tensorrt-%s-cp%s-*-linux_x86_64.whl' % (self .version , pyver )),
98- ]
94+ whls = []
95+ # graphsurgeon and uff removed in 10.0.1
96+ if self .version < LooseVersion ('10.0.1' ):
97+ whls .extend ([
98+ os .path .join ('graphsurgeon' , 'graphsurgeon-*-py2.py3-none-any.whl' ),
99+ os .path .join ('uff' , 'uff-*-py2.py3-none-any.whl' ),
100+ ])
101+ whls .append (os .path .join ('python' , 'tensorrt-%s-cp%s-*-linux_x86_64.whl' % (self .version , pyver )))
102+
99103
100104 installopts = ' ' .join ([self .cfg ['installopts' ]] + self .py_installopts )
101105
@@ -116,8 +120,10 @@ def extensions_step(self):
116120 cmd += " --ignore-installed --no-deps"
117121
118122 run_shell_cmd (cmd )
123+ elif whl_paths :
124+ raise EasyBuildError ("Failed to isolate .whl in %s: %s" , self .installdir , whl_paths )
119125 else :
120- raise EasyBuildError ("Failed to isolate .whl in %s: %s" , whl_paths , self .installdir )
126+ raise EasyBuildError ("No .whl found in %s for patter %s" , self .installdir , whl )
121127
122128 def sanity_check_step (self ):
123129 """Custom sanity check for TensorRT."""
0 commit comments