Comments (19)
Ditto what I said in PHP but with the difference that I've never done any "real world python" before :)
from ventriloquist.
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.
from ventriloquist.
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:
Use a Docker container as the dev environment within the Vagrant VM, maybe using Buildstep or something like it to configure it.
I haven't given much thought to it but if you are up for discussing feel free to open a new issue :)
from ventriloquist.
Pyenv is likely what you want.
On Mon, Oct 7, 2013 at 12:11 PM, Fabio Rehm [email protected]:
Same question I have for PHP: is there something like rvmhttps://rvm.io/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
improvementhttps://github.com/fgrehm/ventriloquist#ideas-for-improvementson the README:Use a Docker container as the dev environment within the Vagrant VM, maybe
using Buildstep https://github.com/progrium/buildstep or something like
it to configure it.I haven't given much thought to it but if you are up for discussing feel
free to open a new issue :)β
Reply to this email directly or view it on GitHubhttps://github.com//issues/19#issuecomment-25821917
.
from ventriloquist.
Thanks! I'll have a look at it
from ventriloquist.
Any luck with this? I'd help but I have no idea what I'm doing :(
from ventriloquist.
Unfortunately not yet :( hoping to do some work on it over the weekend
FΓ‘bio Rehm
Sent on the run
On Oct 11, 2013 10:14 PM, "Jose Diaz-Gonzalez" [email protected]
wrote:
Any luck with this? I'd help but I have no idea what I'm doing :(
β
Reply to this email directly or view it on GitHubhttps://github.com//issues/19#issuecomment-26187110
.
from ventriloquist.
Some notes of on manually setting this up:
sudo apt-get install -y git build-essential libreadline-dev libssl-dev libsqlite3-dev libbz2-dev
git clone git://github.com/yyuu/pyenv.git $HOME/.pyenv
echo 'export PYENV_ROOT="$HOME/.pyenv"' >> ~/.profile
echo 'export PATH="$PYENV_ROOT/bin:$PATH"' >> ~/.profile
echo 'eval "$(pyenv init -)"' >> ~/.profile
pyenv install 3.3.2
pyenv global 3.3.2
python --version
Python 3.3.2
pip --version
pip 1.4.1 from /home/vagrant/....
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?
from ventriloquist.
Django?
On Oct 12, 2013 1:26 PM, "Fabio Rehm" [email protected] wrote:
Some notes of on manually setting this up:
sudo apt-get install -y git build-essential libreadline-dev libssl-dev libsqlite3-dev libbz2-dev
git clone git://github.com/yyuu/pyenv.git $HOME/.pyenv
echo 'export PYENV_ROOT="$HOME/.pyenv"' >> ~/.profile
echo 'export PATH="$PYENV_ROOT/bin:$PATH"' >> ~/.profile
echo 'eval "$(pyenv init -)"' >> ~/.profile
pyenv install 3.3.2
pyenv global 3.3.2python --version
Python 3.3.2pip --version
pip 1.4.1 from /home/vagrant/....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?β
Reply to this email directly or view it on GitHubhttps://github.com//issues/19#issuecomment-26201901
.
from ventriloquist.
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 bundle install && rake db:migrate && rails server
but built with Django :)
I just found this django-sample-app and I'll give it a go now
from ventriloquist.
BTW, they talk about virtualenv / virtualenvwrapper, should we include that by default?
from ventriloquist.
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
from ventriloquist.
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.
from ventriloquist.
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 :)
from ventriloquist.
ah gotcha. twerks for me
from ventriloquist.
@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:
git clone https://github.com/fgrehm/ventriloquist.git
cd ventriloquist
git checkout 19-python-support
bundle install
rake build
vagrant plugin install pkg/ventriloquist-0.2.2.dev.gem
from ventriloquist.
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
from ventriloquist.
I might try it tomorrow.
from ventriloquist.
Done on GH-26
from ventriloquist.
Related Issues (20)
- Support Post-Up Hooks HOT 3
- Erlang fails to install when choosing elixir HOT 5
- Ability to set guest's timezone
- Ability to set git configs HOT 5
- Update services and platforms to latest versions HOT 1
- Ability to configure an X Frame buffer HOT 2
- Ability to install and configure heroku's CLI
- Ability to install and configure foreman HOT 2
- Use Docker trusted builds for services/platforms HOT 4
- Vagrant.require_plugin has been deprecated on 1.5+
- Remove hard coded latest platforms version from the plugin
- Set services version on image name instead of using tags
- Use exenv and elixir-build to install Elixir multiple versions HOT 1
- Trying to run on boot2docker HOT 2
- working with vagrant & docker in windows HOT 1
- Breaks on vagrant 1.6 becasue of the Docker provisioner class rename
- A box must be specified HOT 1
- Error on vagrant up: Docker client is not running (RuntimeError) HOT 4
- "address already in use" on starting PostgreSQL HOT 5
- Stepping Down (aka: new maintainer needed) HOT 5
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
π Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. πππ
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google β€οΈ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from ventriloquist.