jparyani / ipython

Official repository for IPython itself. Other repos in the IPython organization contain things like the website, documentation builds, etc.
http://ipython.org
6 stars 6 forks source link

Extra packages #5

Open ar-jan opened 9 years ago

ar-jan commented 9 years ago

Would there be a way to include extra packages other than building your own spk? Or is it an option to include some popular packages in Sandstorm's version? (e.g. beautifulsoup4).

jparyani commented 9 years ago

If the package (and all its dependencies) are pure-python, then there's a way. You can download a backup of the grain, extract the zip, copy your packages into the sandbox directory and re-zip it. Upload this back to Sandstorm, and your packages will be available under /var and available for import by appending to sys.path.

Unfortunately, beatifulsoup relies on lxml which relies on the compiled C library libxml2. You may be able to get that to work, but it'd be much harder.