@@ -254,10 +254,12 @@ def parse_easyconfig(ec_fn):
254254
255255 # parse easyconfig file;
256256 # the 'parse_easyconfigs' function expects a list of tuples,
257- # where the second item indicates whether or not the easyconfig file was automatically generated or not
257+ # where the second item indicates whether or not the easyconfig file was
258+ # automatically generated or not
258259 ec_dicts, _ = parse_easyconfigs([(ec_path, False)])
259260
260- # only retain first parsed easyconfig, ignore any others (which are unlikely anyway)
261+ # only retain first parsed easyconfig, ignore any others (which are unlikely
262+ # anyway)
261263 return ec_path, ec_dicts[0][' ec' ]
262264
263265
@@ -278,15 +280,21 @@ for key in keys:
278280 print(" %s: %s" % (key, ec[key]))
279281` ` `
280282
281- Example usage:
283+ Example usage (ensure that ` ` EasyBuild-user` ` is loaded as EasyBuild should be
284+ configured properly! ):
282285
283- ` ` ` shell
284- $ ./inspect_easyconfig.py Subread-2.0.0-GCC-8.3.0.eb name version sources sanity_check_paths
285- name: Subread
286- version: 2.0.0
287- sources: [' subread-2.0.0-source.tar.gz' ]
288- sanity_check_paths: {' files' : [' bin/exactSNP' , ' bin/featureCounts' , ' bin/subindel' , ' bin/subjunc' , ' bin/sublong' , ' bin/subread-align' , ' bin/subread-buildindex' ], ' dirs' : [' bin/utilities' ]}
289286` ` `
287+ $ ./inspect_easyconfig.py GMP-6.2.1-cpeCray-21.12.eb name version sources sanity_check_paths
288+ Inspecting /appl/lumi/mgmt/ebrepo_files/LUMI-21.12/LUMI-L/GMP/GMP-6.2.1-cpeCray-21.12.eb ...
289+ name: GMP
290+ version: 6.2.1
291+ sources: [' gmp-6.2.1.tar.bz2' ]
292+ sanity_check_paths: {' files' : [' include/gmp.h' , ' include/gmpxx.h' , ' lib/libgmp.a' , ' lib/libgmp.la' , ' lib/libgmp.so' , ' lib/libgmpxx.a' , ' lib/libgmpxx.la' , ' lib/libgmpxx.so' , ' lib/pkgconfig/gmp.pc' , ' lib/pkgconfig/gmpxx.pc' ], ' dirs' : [' share/info' ]}
293+ ` ` `
294+
295+ This feature can be used, e.g., to extract information from easyconfig files to generate documentation
296+ for the library of easyconfig files.
297+
290298
291299---
292300
0 commit comments