Cortex allows you to install additional Python packages to be used in any workload. If your Python packages require system packages to be installed, see system packages for more details.
Cortex looks for a requirements.txt file in the top level cortex directory (in the same level as cortex.yaml).
./iris/├── cortex.yaml├── ...└── requirements.txt
Cortex looks for your Python packages in the directory ./packages/<package name>. The package must have a setup.py in the root of the package directory with the name set to your package name. Cortex will run pip3 wheel -w wheelhouse ./packages/<package name> to construct wheels for the Python Project.
./iris/├── cortex.yaml├── ...└── packages└── acme-util├── acme-util/| ├── util_a.py| └── util_b.py└── setup.py
Sample setup.py
from distutils.core import setupsetup(name="acme-util",version="0.0.1",description="",author="ACME C. M. Exists",author_email="[email protected]",packages=["acme-util"],install_requires=["pyyaml==3.13"],)