idmtools_platform_comps.utils.python_requirements_ac.install_requirements module

idmtools script to run on Slurm to install python files.

This is part of the RequirementsToAssetCollection tool. This will run on the HPC in an Experiment to install the python requirements as output that will be converted to an AssetCollection later.

Copyright 2021, Bill & Melinda Gates Foundation. All rights reserved.

idmtools_platform_comps.utils.python_requirements_ac.install_requirements.install_packages_from_requirements(python_paths=None)[source]

Install our packages to a local directory.

Parameters:

python_paths – system Python path

Returns: None

idmtools_platform_comps.utils.python_requirements_ac.install_requirements.set_python_dates()[source]

Set python to the same dates so we don’t create pyc files with differing dates.

Pyc embed the date, so this is a workaround for that behaviour.

idmtools_platform_comps.utils.python_requirements_ac.install_requirements.compile_all(python_paths=None)[source]

Compile all the python files to pyc.

This is useful to reduce how often this happens since python will be an asset