Maybe you guys got some fresh ideas about this very interesting question… Little bit of background first, right now each time I want to use python dependencies my workflow goes like this:
-
I try to see if the dependencies I want to use are available to be installed via dependencies.json… if they are I just stop on this step and I celebrate \o/
-
If the code is not ready to be consumed via dependencies.json I’ve got a python 3.3.5 virtualenv living in
Data\Lib\venv… In that virtualenv I’ll install packages such as:a) local packages by using `pip install -e .` b) pypi packages by using `pip install` c) git packages by using `pip install git+...` -
Once I’ve got these packages installed, finally I’ll just copy/paste them manually to
Data\Lib\python3.3folder so they will be available to be used with sublime text builtin python interpreter -
If I need to modify code of these dependencies I’ll modify it first directly on the Data\Lib\python3.3 code and once happy I’ll update the upstreams (should be the other way around).
So… as you can see, this workflow is really slow and error prone so today I was wondering if with the current SublimeText build 3176 I could improve it somehow. Few months ago I’d already checked than creating softlinks (windows softlinks) pointing out to the virtualenv site-packages wasn’t possible. Mainly because sublime text would ignore these shortcuts and it’d create the real Data\Lib\python3.3 folder if it didn’t exist… guess this is hardcoded in ST source code… —> It’d be great if we the users could specify our own “python3.3” additional path somehow <—
Anyway, let’s assume there is this little limitation and live with it… even so, can you think of any “hack/trick” to make ST read packages from the site-packages virtualenv directly instead the rigid hardcoded addtional Data\Lib\python3.3 path? If this was possible the workflow would be improved x100!!!
Said otherwise, if this could be tweaked somehow basically you’d just be able to install stuff into your virtualenv and have the whole python3.3 python ecosystem cooked for SublimeText to be used… wouldn’t that be great? 
Only way i can think of right now is by trying to tweak PYTHONPATH SublimeText python builtin interpreter somehow before any package is loaded…
Another way I can think of is by using an hex editor and looking for “python3.3” references and change those to point out to my Data\Lib\python3.3\Lib\site-packages… but I’ll hold back my horses to see if someone has a better idea here :'D
So… thoughts? ideas?
Thanks in advance
, but even so… this is great.


