I'm developing a twitter app on google appengine - for that I want to use the Twython library. I tried installing it using pip - but it either installs it in the main python dir, or doesn't import all dependencies.
I can simply copy all the files of Twython to the appengine root dir, and also import manually all the dependency libraries, but that seems awfully wrong. How do I install a package in a specific folder including all it's dependencies?
Thanks
If you put the module files in a directory, for example external_modules/, and then use sys.path.insert(0, 'external_modules') you can include the module as it would be an internal module.
You would have to call sys.path.insert before the first import of the module.
Example: If you placed a "module.pyd" in external_modules/ and want to include it with import module, then place the sys.path.insert before.
The sys.path.insert() is an app-wide call, so you have to call it only once.  It would be the best to place it in the main file, before any other imports (except import sys of course).
How to install python package in a specific directory