python-ast 1.0.2

A library for compiling Python to Rust
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
import os.path
import subprocess
import sys

def main():
    (venvroot, python) = ensure_venv_ready(kind="tests")
    if ((python) != (sys.executable)):
        os.execv(python, [python] + sys.argv)
    
    proc = subprocess.run(
        [sys.executable, "-u", "-m", "pyperformance.tests"],
        cwd=os.path.dirname(__file__),
    )
    sys.exit(proc.returncode)

if __name__ == "__main__":
    main()