Skip to content

Commit

Permalink
feat: more robust pip install
Browse files Browse the repository at this point in the history
  • Loading branch information
CNSeniorious000 committed Aug 23, 2024
1 parent d2f0161 commit 0e2e481
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 7 deletions.
9 changes: 3 additions & 6 deletions reasonify-headless/reasonify/tools/install.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,7 @@


@tool
async def pip_install(requirements: str | list[str]):
"""
Install a package or list of packages to this runtime environment.
If you are going to use a 3-party library, you should install it first.
"""
async def pip_install(*requirements: str):
"""install 3rd-party packages to this runtime environment"""

return await install(requirements, keep_going=True)
return await install(sum(map(str.split, requirements), []), keep_going=True)
2 changes: 1 addition & 1 deletion reasonify-headless/version.py
Original file line number Diff line number Diff line change
@@ -1 +1 @@
__version__ = "0.1.3"
__version__ = "0.1.4"

0 comments on commit 0e2e481

Please sign in to comment.