Skip to content

Commit

Permalink
Support extra_packages in PythonPackage
Browse files Browse the repository at this point in the history
  • Loading branch information
ethanluoyc committed Oct 5, 2023
1 parent 29fd8ac commit e68aa23
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions lxm3/xm_cluster/executable_specs.py
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,7 @@ class PythonPackage(job_blocks.ExecutableSpec):
entrypoint: Union[CommandList, ModuleName]
path: str = attr.ib(converter=utils.resolve_path_relative_to_launcher, default=".")
resources: List[Fileset] = attr.ib(converter=list, default=attr.Factory(list))
extra_packages: List[str] = attr.ib(converter=list, default=attr.Factory(list))

@property
def name(self) -> str:
Expand Down
1 change: 1 addition & 0 deletions lxm3/xm_cluster/packaging/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,7 @@ def _create_archive(
"-t",
tmpdir,
package_dir,
*py_package.extra_packages,
],
text=True,
check=True,
Expand Down

0 comments on commit e68aa23

Please sign in to comment.