Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ The client here will eventually be released as "spython" (and eventually to
singularity on pypi), and the versions here will coincide with these releases.

## [master](https://github.com/singularityhub/singularity-cli/tree/master)
- adding quiet argument to build to override client (0.0.69)
- adding additional options to build to support singularity-compose (0.0.68)
- client should support shell (0.0.67)
- adding test for entrypoint + cmd and fixing testing requirements (0.0.66)
Expand Down
13 changes: 11 additions & 2 deletions spython/main/build.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,9 @@ def build(self, recipe=None,
sudo=True,
stream=False,
force=False,
options=None):
options=None,
quiet=False,
return_result=False):

'''build a singularity image, optionally for an isolated build
(requires sudo). If you specify to stream, expect the image name
Expand All @@ -46,6 +48,8 @@ def build(self, recipe=None,
instead. Highly recommended :)
sudo: give sudo to the command (or not) default is True for build
options: for all other options, specify them in this list.
quiet: quiet verbose printing from the client.
return_result: if True, return complete error code / message dictionary
'''
from spython.utils import check_install
check_install()
Expand Down Expand Up @@ -98,7 +102,12 @@ def build(self, recipe=None,
cmd = cmd + options + [image, recipe]

if not stream:
self._run_command(cmd, sudo=sudo, capture=False)
self._run_command(cmd,
sudo=sudo,
quiet=quiet,
return_result=return_result,
capture=False)

else:
# Here we return the expected image, and an iterator!
# The caller must iterate over
Expand Down
2 changes: 1 addition & 1 deletion spython/version.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
# with this file, You can obtain one at http://mozilla.org/MPL/2.0/.


__version__ = "0.0.68"
__version__ = "0.0.69"
AUTHOR = 'Vanessa Sochat'
AUTHOR_EMAIL = 'vsochat@stanford.edu'
NAME = 'spython'
Expand Down