Skip to content

Python guest: re-fetch Python deps if requirements.txt changes #132

@crepererum

Description

@crepererum

What

If requirements.txt changes, we should re-fetch the Python dependencies.

Why

If one adds or updates dependencies, developers should get the newest version too. This is NOT an issue in CI since we don't cache that path. This is especially relevant once #104 is implemented.

How

We deliberately don't re-call pip every time we build the guest, since pip needs network IO and is generally not the fastest:

# skip if already downloaded
if [ -d "{{PYTHON_TMP_VENV}}" ]; then
echo "site-packages already set up"
set +x
echo ::endgroup::
exit 0
fi

However we should probably write a fingerprint file or something and check if that fingerprint is out-of-date.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions