Search code examples
pythonpackagesetuptoolsdistutilssoftware-distribution

packaging numpy/scipy and other Python packages with C application?


if I have an application that is written part in Python and has dependencies like numpy and scipy and part in C, how can I package it as an executable (e.g. for Linux) or as a source distribution in a way that does not depend on installing numpy/scipy and other Python modules? ie is it possible to package numpy/scipy into a binary? thanks.


Solution

  • If you want a standalone executable, I suggest trying PyInstaller. It is cross-platform (Windows, Linux, MacOS X, ...) and has quite extensive support out-of-the-box for many packages with binary dependencies, including numpy.