-
Notifications
You must be signed in to change notification settings - Fork 20
Python support #19
Comments
Ditto what I said in PHP but with the difference that I've never done any "real world python" before :) |
I believe python 2.7 comes out of the box on Ubuntu, but they will be moving to 3.3 in the future. http://askubuntu.com/questions/244544/how-to-install-python-3-3 I'm more familiar with how buildpacks work, so if python is supported out of the box with ventriloquist, then fuck yeah. |
Same question I have for PHP: is there something like rvm for python? Going a bit off topic, I'd love to make use of buildpacks from within ventriloquist and it is actually listed as one of the ideas for improvement on the README:
I haven't given much thought to it but if you are up for discussing feel free to open a new issue :) |
Pyenv is likely what you want. On Mon, Oct 7, 2013 at 12:11 PM, Fabio Rehm notifications@github.comwrote:
|
Thanks! I'll have a look at it |
Any luck with this? I'd help but I have no idea what I'm doing :( |
Unfortunately not yet :( hoping to do some work on it over the weekend Fábio Rehm
|
Some notes of on manually setting this up:
How can I validate that we have everything in place for a "seamlessly python experience"? Is there a open source medium sized python app that I can try setting up to validate the setup? |
Django?
|
Django is just the framework, I want to try a full blown app to find out if things are glued together properly, something like Discourse or any other app that I can just do the equivalent of a |
BTW, they talk about virtualenv / virtualenvwrapper, should we include that by default? |
Ok, so I ended up using https://github.com/ridethepony/django-fiber-example and it seems that things are working fine. I just had trouble using python 3.3 with it and had to downgrade to 2.7 I think I have enough info to implement this, will get to it as soon as I have a chance (probably over the week). Please ping me in case I forget to report back :P |
Yeah, I think including virtualenv/virtualenvwrapper is fine, though since the entire app is in a docker instance, we don't really need to do that. virtualenv is like gem bundles. |
Just to be clear, the apps are not inside a docker instance but actually inside a Vagrant machine that gets configured with services that run within Docker containers. My plan is to eventually switch to using a Docker instance to run the apps but I'm still thinking about how that would look like. Regarding virtualenv, I think we can leave it out for now. Whether the app is on a Docker container or a Vagrant VM I believe it already gives us enough isolation :) |
ah gotcha. twerks for me |
@josegonzalez So I did some work on this that is available at the 19-python-support branch, if you are feeling adventurous and want to try it out:
|
Oh, and to use it: Vagrant.configure("2") do |config|
config.vm.box = "your-box"
config.vm.provision :ventriloquist do |env|
env.platforms << 'python'
end
end |
I might try it tomorrow. |
Done on GH-26 |
Ditto on what I said in PHP. Could be good to have multiple versions of both.
The text was updated successfully, but these errors were encountered: