qip.environ¶
-
qip.environ.PYTHON_INFO_SCRIPT= '/home/docs/checkouts/readthedocs.org/user_builds/qip/envs/latest/lib/python2.7/site-packages/qip/package_data/python_info.py'¶ Path to the python info script.
-
qip.environ.fetch(python_target, mapping=None)[source]¶ Fetch mapping with all environment variables required.
Parameters: - python_target – Target a specific Python version via a Wiz request or a path to a Python executable (e.g. “python==2.7.*” or “/path/to/bin/python”).
- mapping – optional custom environment mapping to be added to initial environment.
Returns: environment mapping
It should be in the form of:
{ "PATH": "/path/to/bin", "PYTHONPATH": "/path/to/lib/site-packages", }
Example:
>>> fetch("python==2.7.*") >>> fetch("/path/to/bin/python")
-
qip.environ.fetch_python_mapping(environ_mapping)[source]¶ Fetch Python version mapping.
Parameters: environ_mapping – mapping of environment variables Returns: python mapping. It should be in the form of:
{ "identifier": "2.7", "request": "python >= 2.7, < 2.8", "installation-target": "lib/python2.7/site-packages" }