Skip to content
cs50Public

About

No description, website, or topics provided.

Resources

Stars

8 stars

Watchers

4 watching

Forks

Repository files navigation

cs50/check

https://cs50.readthedocs.io/cs50/check/

Python runtimes

The image has two Python runtimes, and docker-entry.sh picks one per job:

  • cs50/cli's python3 (/usr/local/bin/python3) is the default. It gets dependencies/python/requirements.txt.
  • /opt/tensorflow is a CPython 3.14 built from source with cs50/cli's configure flags, so TensorFlow checks grade on the same interpreter students had on 3.14. It gets the same requirements.txt plus dependencies/python/requirements-tensorflow.txt. A job runs on it when check50-runtime finds that its checks import tensorflow, tf_keras, keras, or transformers (e.g. ai50/projects/traffic and attention, which import TensorFlow in the check module and load student code in-process).

This keeps TensorFlow, which trails new Python releases by about a year, from holding back the Python version in cs50/cli (cs50/cli#254). Once the TensorFlow stack has wheels for cs50/cli's Python, fold requirements-tensorflow.txt back into requirements.txt and drop the second runtime.

make build then make test (or bash tests/smoke.sh IMAGE) exercises both runtimes the way CI does before pushing.

About

No description, website, or topics provided.

Resources

Stars

8 stars

Watchers

4 watching

Forks

Used by

Contributors

Languages