Found this in the Cython repo, and it might be easier.
"""
Compile a Python script into an executable that embeds CPython.
Requires CPython to be built as a shared library ('libpythonX.Y').
Basic usage:
python -m Cython.Build.BuildExecutable [ARGS] somefile.py
"""