Notice: This forum has been recovered from an old backup, so some content, links, and dates may be outdated. The forum is currently read-only while we restore sign-in and registration functionality. Details

If you find this forum valuable and would like to help keep it online, donations to help cover hosting and domain costs are greatly appreciated, but never expected. You can support the forum through Buy Me a Coffee or Ko-fi. Thank you for helping preserve the EventGhost community.

Install easy_install package?

If you have a question or need help, this is the place to be.
Post Reply
bruinlax
Posts: 26
Joined: Thu Sep 29, 2011 4:31 pm

Install easy_install package?

Post by bruinlax »

I'm thinking about making a plugin that runs of Flask, which along with its dependencies is generally installed using easy_install for windows.

if i don't want to run off source, and use the built in py.exe / environment, is there a way to install / compile the packages?

Other than that the only way i can think would be to run all of eventghost off source, or have just the plugin start up on its own virtualenv.
bruinlax
Posts: 26
Joined: Thu Sep 29, 2011 4:31 pm

Re: Install easy_install package?

Post by bruinlax »

So i think i got it running, but by doing it in a very hacky way

I did a virtualenv of 2.6.5 stackless, then easy_install flask.

then I copied the eggs into the plugin folder i'm writing and put this in the plugin __init__
import sys
sys.path.append('flask-0.10.1-py2.6.egg')
sys.path.append('itsdangerous-0.24-py2.6.egg')
sys.path.append('jinja2-2.7.3-py2.6.egg')
sys.path.append('markupsafe-0.23-py2.6-win32.egg')
sys.path.append('werkzeug-0.9.6-py2.6.egg')

it seems to work, but is there a cleaner way to install packages like that?
Post Reply