Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/usr/bin/env bash
- plik="test"
- py_wer="3.10"
- cat << EOF > "${plik}.pyx"
- #!python
- #cython: language_level=3
- print("przykładowa suma:\n%i + %i = %i" % (1, 2, 1 + 2))
- EOF
- cython3 --embed "${plik}.pyx"; gcc "${plik}.c" -I "/usr/include/python${py_wer}/" -L "/lib/x86_64-linux-gnu/" -l "python${py_wer}" -Os -Wall -o "${plik}.out"
- ./"${plik}.out"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement