Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
sagemath
GitHub Repository: sagemath/sage
Path: blob/develop/src/bin/sage-run-cython
4052 views
#!/usr/bin/env python3

import sys

from sage.misc.temporary_file import tmp_filename
from sage.repl.load import load_cython

if len(sys.argv) > 1:
    s = load_cython(sys.argv.pop(1))
    eval(compile(s, tmp_filename(), 'exec'))