Skip to content

add support for checking required/optional EasyBuild dependencies via 'eb --check-eb-deps'#3829

Merged
akesandgren merged 5 commits intoeasybuilders:developfrom
boegel:check_deps
Sep 13, 2021
Merged

add support for checking required/optional EasyBuild dependencies via 'eb --check-eb-deps'#3829
akesandgren merged 5 commits intoeasybuilders:developfrom
boegel:check_deps

Conversation

@boegel
Copy link
Copy Markdown
Member

@boegel boegel commented Sep 12, 2021

Example output when using Python 3 and having rich installed (misaligned lines in tables is only due to copy-pasting)

$ eb --check-eb-deps

     Required dependencies
┏━━━━━━━━━━━━━━┳━━━━━━━━━━━━━━┓
┃ name         ┃ version      ┃
┡━━━━━━━━━━━━━━╇━━━━━━━━━━━━━━┩
│ Python       │ ✅  3.9.5    │
│ modules tool │ ✅  Lmod 8.3 │
└──────────────┴──────────────┘
                                          Optional dependencies
┏━━━━━━━━━━━━━━━━━━━┳━━━━━━━━━━━━━━━┳━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┓
┃ name              ┃ version       ┃ used for                                                          ┃
┡━━━━━━━━━━━━━━━━━━━╇━━━━━━━━━━━━━━━╇━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┩
│ archspec          │ ✅  0.1.2     │ determining name of CPU microarchitecture                         │
│ autopep8          │ ✅  1.5.7     │ auto-formatting for dumped easyconfigs                            │
│ GC3Pie            │ ✅  2.6.8     │ backend for --job                                                 │
│ GitPython         │ ✅  3.1.11    │ GitHub integration + using Git repository as easyconfigs archive  │
│ graphviz-python   │ ❌  not found │ rendering dependency graph with Graphviz: --dep-graph             │
│ keyring           │ ✅  21.4.0    │ storing GitHub token                                              │
│ pbs-python        │ ❌  not found │ using Torque as --job backend                                     │
│ pep8              │ ❌  not found │ fallback for code style checking: --check-style, --check-contrib  │
│ pycodestyle       │ ✅  2.7.0     │ code style checking: --check-style, --check-contrib               │
│ pysvn             │ ❌  not found │ using SVN repository as easyconfigs archive                       │
│ python-graph-core │ ❌  not found │ creating dependency graph: --dep-graph                            │
│ python-graph-dot  │ ❌  not found │ saving dependency graph as dot file: --dep-graph                  │
│ python-hglib      │ ✅  2.6.2     │ using Mercurial repository as easyconfigs archive                 │
│ PyYAML            │ ✅  5.3.1     │ easystack files and .yeb easyconfig format                        │
│ requests          │ ✅  2.24.0    │ fallback library for downloading files                            │
│ Rich              │ ✅  10.4.0    │ eb command rich terminal output                                   │
│ setuptools        │ ✅  56.0.0    │ obtaining information on Python packages via pkg_resources module │
└───────────────────┴───────────────┴───────────────────────────────────────────────────────────────────┘
        System tools
┏━━━━━━━━━┳━━━━━━━━━━━━━━━━┓
┃ name    ┃ version        ┃
┡━━━━━━━━━╇━━━━━━━━━━━━━━━━┩
│ 7z      │ ❌  not found  │
│ bunzip2 │ ✅  1.0.6      │
│ dpkg    │ ❌  not found  │
│ gunzip  │ ✅  321.100.11 │
│ make    │ ✅  3.81       │
│ patch   │ ✅  2.5.8      │
│ rpm     │ ❌  not found  │
│ sed     │ 🟡  version?!  │
│ Slurm   │ ❌  not found  │
│ tar     │ ✅  3.3.2      │
│ unxz    │ ✅  5.2.5      │
│ unzip   │ ✅  6.00       │
└─────────┴────────────────┘

@boegel boegel added this to the next release (4.4.3?) milestone Sep 12, 2021
Comment thread easybuild/tools/systemtools.py Outdated
Copy link
Copy Markdown
Contributor

@akesandgren akesandgren left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, don't have rich installed but works nicely without it.

@akesandgren akesandgren merged commit 29d7d25 into easybuilders:develop Sep 13, 2021
@boegel boegel deleted the check_deps branch September 13, 2021 17:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants