Cortex allows you to install additional Python packages that can be made available to aggregators, transformers, and models.
Cortex looks for a
requirements.txt file in the top level directory of the app (in the same level as
app.yaml). All packages listed in
requirements.txt will be made available to aggregators, transformers, and models.
./iris/├── app.yaml├── requirements.txt├── samples.json├── implementations/└── resources/
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.
Cortex App Directory
./iris/├── app.yaml├── samples.json├── implementations/├── resources/└── packages└── acme-util├── acme-util/| ├── util_a.py| └── util_b.py└── setup.py
from distutils.core import setupsetup(name="acme-util",version="0.0.1",description="",author="ACME C. M. Exists",author_email="email@example.com",packages=["acme-util"],install_requires=["pyyaml==3.13"],)