Skip to content

Commit

Permalink
Use set() for Python 2.6 compat
Browse files Browse the repository at this point in the history
  • Loading branch information
Flamefire committed Jul 22, 2020
1 parent 32d2fa1 commit b7761e1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion easybuild/easyblocks/p/pytorch.py
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ def configure_step(self):
options.append('BLAS=Eigen')

known_dependencies = ('FFmpeg', 'gflags', 'glog')
dependency_names = {dep['name'] for dep in self.cfg.dependencies()}
dependency_names = set(dep['name'] for dep in self.cfg.dependencies())
for dep in known_dependencies:
if dep in dependency_names:
options.append('USE_%s=1' % dep.upper())
Expand Down

0 comments on commit b7761e1

Please sign in to comment.