title: How to properly deploy python webserver application with extension deps?
body: <p>I developed my first webserver app in Python.
  It's a but unusual, because it does not only depend on python modules (like tornado) but also on some proprietary C++ libs wrapped using SWIG.</p>
  
  <p>And now it's time to deliver it (to Linux platform).</p>
  
  <p>Due to dependency on C++ lib, just sending sources with requirements.txt does not seem enough. The only workaround would be to have exact Linux installation to ensure binary compatibility of the lib. But in this case there will be problems with LD_PATH etc.</p>
  
  <p>Another option is to write setup.py to create sdist and then deploy it with <code>pip install</code>.
  Unfortunately that would mean I have to kill all instances of the server before installing my package. The workaround would be to use virtualenv for each instance though.</p>
  
  <p>But maybe I'm missing something much simpler?</p>