title: How to collect the compiled modules?
body: <p>For deployment I would like to build a base image for a PC. Therefore I would need a build script to build the system from the base image. To the base image I would like to install several python modules. But the base image shouldn't contain the development/build tools (e.g. python-dev).</p>
  
  <p>Therefore my plan is to</p>
  
  <ol>
  <li>Install the development/build tools</li>
  <li>Use pip install to install the item (e.g. paramiko)</li>
  <li>Collect the compiled and installed modules, and then put the compiled module in somewhere</li>
  <li>In the build script it will copy the pre-compiled python modules into the system</li>
  </ol>
  
  <p>In short the sourcecode is being obtained and is being compiled. But how can I copy out the compiled module and deploy it to another platform?</p>
  
  <p>Thanks in advance</p>