title: Is there a way to embed dependencies within a python script?
body: <p>I have a simple script that has a dependency on <a href="http://pypi.python.org/pypi/dnspython/">dnspython</a> for parsing zone files.  I would like to distribute this script as a single .py that users can run just so long as they have 2.6/2.7 installed.  I don't want to have the user install dependencies site-wide as there might be conflicts with existing packages/versions, nor do I want them to muck around with virtualenv.  I was wondering if there was a way to embed a package like dnspython inside the script (gzip/base64) and have that script access that package at runtime.  Perhaps unpack it into a dir in /tmp and add that to sys.path?  I'm not concerned about startup overhead, I just want a single .py w/ all dependencies included that I can distribute.</p>
  
  <p>Also, there would be no C dependencies to build, only pure python packages.</p>
  
  <p>Edit: The script doesn't have to be a .py.  Just so long as it is a single executable file.</p>