Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add generic JuliaPackage easyblock #2816

Merged
merged 8 commits into from
Nov 15, 2022
Merged

Conversation

lexming
Copy link
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
easybuild/easyblocks/generic/juliapackage.py Outdated Show resolved Hide resolved
easybuild/easyblocks/generic/juliapackage.py Outdated Show resolved Hide resolved
easybuild/easyblocks/generic/juliapackage.py Outdated Show resolved Hide resolved
easybuild/easyblocks/generic/juliapackage.py Outdated Show resolved Hide resolved
easybuild/easyblocks/generic/juliapackage.py Show resolved Hide resolved
easybuild/easyblocks/generic/juliapackage.py Show resolved Hide resolved
easybuild/easyblocks/generic/juliapackage.py Outdated Show resolved Hide resolved
@lexming
Copy link
Contributor Author

lexming commented Nov 10, 2022

Requested new tests in the linked easyconfigs.

Copy link
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