I'm trying to put my Python program and all of it's dependencies into a single binary that could be executed from the command line. I followed Broken Man's suggestion in this post here using Cython3 and it works if you have a simple Python script. However it doesn't work if you're using import statements in your code to include your dependencies.
I'm looking for a solution that will allow me to execute my program similar to how you would in C, e.g think ./a.out
Please don't recommend using chmod +x
to convert it into an executable. That's not what I'm looking for. This isn't a desktop app either - it needs to be executed from the command line.
Can Cython/Cythonize be used to compile dependencies or is there another tool that should be used for this? The dependencies I'm relying on are a mix of libraries installed with pip and custom written files in the same directory.