If the orb does not already have a parameter for this, it may not yet have been a concern. The way to handle this in an orb is to “pass through” the parameter.
You can see here in the Python Orb’s install-packages
command, we “pass through” no_output_timeout.
type: string
default: requirements.txt
description: |
Name of the requirements file that needs to be installed with pip. Prepended with `app-dir`. If using pipenv or poetry, this is ignored.
If using `pip-dist`, use this to use the cache checksum against the `setup.py` if desired.
If `pip-dependency-file` is set to an empty string, no dependency file is used in the `pip install` command.
app-dir:
type: string
default: "."
description: Path to the directory containing your python project. Not needed if dependency file lives in the root.
no_output_timeout:
type: string
default: "10m"
description: Elapsed time the command can run without output. Passed to install command.
venv-cache:
type: boolean
default: true
description: Use the lockfile to cache the virtualenv. Not used with pip as pkg-manager.
pypi-cache:
type: boolean
default: true
command: <<include(scripts/cache-restore.sh)>>
# run install steps
- steps: <<parameters.pre-install-steps>>
- when:
condition:
equal: [auto, << parameters.pkg-manager >>]
steps:
- run:
name: "Install dependencies with automatically determined project package manager"
working_directory: << parameters.app-dir >>
no_output_timeout: << parameters.no_output_timeout >>
environment:
PARAM_PKG_MNGR: << parameters.pkg-manager >>
PARAM_DEPENDENCY_FILE: << parameters.pip-dependency-file >>
PARAM_PATH_ARGS: << parameters.path-args >>
PARAM_ADDITIONAL_ARGS: << parameters.args >>
command: <<include(scripts/auto-install-command.sh)>>
- when:
condition:
equal: [pipenv, << parameters.pkg-manager >>]
steps: