I know how to embed the Python interpreter in my script.c script when using cython
on the command line per this SO post.
However, unfortunately I'm getting the following errors in the headers of my .c file.
/* Generated by Cython 0.29.6 */
#define PY_SSIZE_T_CLEAN
#include "Python.h"
#ifndef Py_PYTHON_H
#error Python headers needed to compile C extensions, please install development version of Python.
#elif PY_VERSION_HEX < 0x02060000 || (0x03000000 <= PY_VERSION_HEX && PY_VERSION_HEX < 0x03030000)
#error Cython requires Python 2.6+ or Python 3.3+.
#else
Since I'm using MacOS, I installed python via homebrew so I also know that my headers are located in the following directory.
/usr/local/Cellar/python3/3.7.0/Frameworks/Python.framework/Versions/3.7/Headers
With the knowledge of where the Python headers live, how do I fix my error when using cython to compile my Python code in C code so that it becomes a portable executable?