Skip to content

add generic JuliaPackage easyblock#2816

Merged
boegel merged 8 commits intoeasybuilders:developfrom
lexming:juliapkg
Nov 15, 2022
Merged

add generic JuliaPackage easyblock#2816
boegel merged 8 commits intoeasybuilders:developfrom
lexming:juliapkg

Conversation

@lexming
Copy link
Copy Markdown
Contributor

@lexming lexming commented Oct 26, 2022

Easyblock for Julia packages:

  • Installs packages from local sources
  • Sources can either be a tarball or a git repo (git_config)
  • Avoids any extra downloads (offline mode)
  • Updates JULIA_DEPOT_PATH to make Julia aware of the installation
  • defines EXTS_FILTER_JULIA_PACKAGES to sanity check the installation
  • Works for regular easyconfigs and also for extensions
  • extra option bundle_deps enables Julia to download extra dependencies on-the-fly (opt-in needed to use this easyblock with Julia < 1.5)

Julia needs a git repo to install any package in a regular way because it generates unique hashes for the package from it. Hence, this easyblock detects what kind of sources we have and acts accordingly:

  • git repo: install as regular package with Pkg.add
  • non-git tarball: install in development mode with Pkg.develop

@boegelbot

This comment was marked as outdated.

@boegel boegel changed the title add easyblock for JuliaPackage add generic JuliaPackage easyblock Oct 26, 2022
@boegel boegel added this to the next release (4.6.3?) milestone Oct 26, 2022
Comment thread easybuild/easyblocks/generic/juliapackage.py Outdated
Comment thread easybuild/easyblocks/generic/juliapackage.py Outdated
Comment thread easybuild/easyblocks/generic/juliapackage.py Outdated
Comment thread easybuild/easyblocks/generic/juliapackage.py Outdated
Comment thread easybuild/easyblocks/generic/juliapackage.py
Comment thread easybuild/easyblocks/generic/juliapackage.py
Comment thread easybuild/easyblocks/generic/juliapackage.py Outdated
@lexming
Copy link
Copy Markdown
Contributor Author

lexming commented Nov 10, 2022

Requested new tests in the linked easyconfigs.

Copy link
Copy Markdown
Member

@boegel boegel left a comment

Choose a reason for hiding this comment

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

lgtm

@boegel boegel merged commit 4f9c56b into easybuilders:develop Nov 15, 2022
@lexming lexming deleted the juliapkg branch November 16, 2022 15:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants