title: Building Cython-compiled python code with PyInstaller
body: <p>I am trying to build a Python multi-file code with <code>PyInstaller</code>. For that I have compiled the code with <code>Cython</code>, and am using <code>.so</code> files generated in place of <code>.py</code> files.</p>
  
  <p>Assuming the 1st file is <code>main.py</code> and the imported ones are <code>file_a.py</code> and <code>file_b.py</code>, I get <code>file_a.so</code> and <code>file_b.so</code> after Cython compilation. </p>
  
  <p>When I put <code>main.py</code>, <code>file_a.so</code> and <code>file_b.so</code> in a folder and run it by <code>"python main.py"</code>, it works.</p>
  
  <p>But when I build it with <code>PyInstaller</code> and try to run the executable generated, it throws errors for imports done in <code>file_a</code> and <code>file_b</code>. </p>
  
  <p>How can this be fixed? One solution is to import all standard modules in <code>main.py</code> and this works. But if I do not wish to change my code, what can be the solution?</p>