Search code examples
pythonlinuxpack

How to pack python source code so that they change into ".so" files


I had wrote a python project with many ".py" files. Now I need to pack them and make them become ".so" files in order to meet the work's condition. But I had no method after a long thinking. Could you please give me some help ?

Thank you!


Solution

  • For generating an .so file, you need a compiled language. I'm not sure, how close you can get to that on Python basis, but Cython seems worth a look, especially, since the lower diagram of wikipedia articel already shows a .so file.