This commit is contained in:
Eric Hanson 2026-04-10 08:32:05 +02:00 committed by GitHub
commit f9031c8149
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 46 additions and 0 deletions

View file

@ -99,6 +99,14 @@ def install_environment(
shutil.copy(manifest_file, envdir)
break
# copy `src` files if they exist
src_dir = prefix.path('src')
if os.path.isdir(src_dir):
shutil.copytree(
src_dir, os.path.join(envdir, 'src'),
dirs_exist_ok=True,
)
# Julia code to instantiate the hook environment
julia_code = """
@assert length(ARGS) > 0