Skip to content

Commit 9c4c794

Browse files
committed
fix findPythonDeps when called with an absolute path to an EC
`eb --missing` returns a list with filenames. So an absolute path passed to `--ec` isn't matched which leads to an error stating you should install the EasyConfig that you are trying to find the dependencies of. Fix by getting the filename/basename first.
1 parent bbfd3a7 commit 9c4c794

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

easybuild/scripts/findPythonDeps.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -171,8 +171,9 @@ def print_deps(package, verbose):
171171
capture_stderr=False,
172172
action_desc='Get missing dependencies'
173173
)
174+
excluded_dep = '(%s)' % os.path.basename(args.ec)
174175
missing_deps = [dep for dep in missing_dep_out.split('\n')
175-
if dep.startswith('*') and '(%s)' % args.ec not in dep
176+
if dep.startswith('*') and excluded_dep not in dep
176177
]
177178
if missing_deps:
178179
print('You need to install all modules on which %s depends first!' % args.ec)

0 commit comments

Comments
 (0)