/srv/irclogs.ubuntu.com/2015/03/07/#ubuntu-us-mi.txt

=== SneakyPhil is now known as phil
=== phil is now known as Guest68091
jrwrengreg-g: i'm gonna be opposite of rick_h_ and say - don't use venvs. use debs :)01:39
jrwrengreg-g: so yeah, just whip up python use python system packages from ubuntu.01:40
jrwrengreg-g: you on debian? then I can't help :p01:40
jrwrengreg-g: ubuntu has nice python packages, and if it is missing 1 or 2, I can usually package them up in no time.01:40
cmaloneyevening01:41
cmaloneyvenvs atre awesome01:42
cmaloneysome commands i write a wrapper to execute01:42
jrwrenvenvs are a crutch for the weak :p01:48
greg-gjrwren: cmaloney this is what another buddy recommended: http://paste.debian.net/160032/02:09
greg-gvenv's, basically02:09
greg-ghe followed up with:02:09
greg-g00:50 < paulprote> If you want a less heavy-handed way, but similarly  effective and more standard, you can make a 'setup.py'  that lists the packages *without* version numbers, and  './bin/pip install --editable . ' and 'bin/pip freeze  > requirements.txt'02:09
greg-g00:50 < paulprote> Yeah I think that's better but now I have confused you  by making two suggestions oops.02:09
jrwrengreg-g: so... why would you do that if your goal is to whip up a quick python script.02:12
jrwrengreg-g: if you are starting some big ass project, sure.02:12
jrwrenbut if you are just whipping some up script????02:13
greg-guse case: writing a report generator from our phabricator install02:13
greg-git might evolve over time, but yeah, light weight mostly02:13
greg-gthe annoying bit before was when i switched from one laptop to another and it didn't work due to missing dependencies etc (ubuntu vs debian)02:14
greg-g(and I want others to maybe use it, others in our org, that is)02:14
_stink_i always make a virtualenv for a new thing, no matter the size.02:19
_stink_jrwren: take that!02:20
greg-g:)02:20
_stink_i do keep a generic virtualenv with ipython and requests, maybe simplejson installed for testing and such02:20
jrwreni used to, then i realized, I was being stupid.02:20
_stink_that i *might* use for really simple stuff02:20
_stink_haha02:20
jrwrengreg-g: so... sharing python code sucks becuase all your uses will either need to create a venv and install all the deps, or install all the system deps.02:21
greg-gjrwren: isn't that what the ./bin/pip install -r requirements.txt step does for them?02:22
greg-gdoesn't that make it easy for them to get the right dependencies?02:22
jrwrengreg-g: yes02:22
jrwrenfor some def of "easy"02:22
* greg-g is honstly trying to figure it out02:23
jrwrenif you use any modules which are C, then you also need a build env and any c libs that those modules need.02:23
jrwrenit can be a pain compared ot "just apt-get install these pkgs"02:23
greg-gI doubt C will come into my little report generator :)02:23
greg-gsure02:23
jrwrendunno.02:23
jrwrengonna use a DB?02:23
jrwrenpsycopg2? :)02:23
greg-gnope, it's a one time run thing02:24
_stink_another reason i like virtualenvs every time is because i frequently run old LTS installs, and i can get new libs from pypi02:24
greg-gthe main dependency: https://github.com/disqus/python-phabricator02:24
greg-galright, almost to my bus stop, thanks you two02:24
greg-gfriday starts.... now.02:24
jrwrengl02:25
* _stink_ puts on the techno02:25
jrwrenapt-cache search says greg-g will be using venvs and pip :)02:25
_stink_hehe02:25
rick_h_greg-g: so it depends on what this is for. if it's something you use on your system a lot I just sudo pip install02:45
rick_h_greg-g: so httpie, some python tools for vim, etc I always just system install02:45
rick_h_greg-g: if it's something more experimental then yea, I'll venv it in ~/src/xxx02:45
rick_h_greg-g: and if it's really big/hairy/etc I'll say just whip up an lxc and system install it in there02:45
rick_h_but then you're an ssh away from using it each time02:46
rick_h_and yea, avoid python system packages unless it's somethig production and you can wait 6mo for an update02:46
rick_h_and are willing to run non-LTS packages02:47
greg-g:)02:50
jrwren<3 system packages.02:54
jrwreninstant deploy FTW02:54
rick_h_I love them too02:54
rick_h_but find them to not work out well for fast moving things like libraries to things like clouds/etc that don't fall under "I can wait for next release" and "synced with distro release" schedules02:54
cmaloneyYeah, I'm with rick_h_ on this03:11
cmaloneyif it's something like jedi where I need it over multiple projects, or something I use often then it gets sudo pip install ..03:11
cmaloneyother things like galileo (libfitbit) get venvs with scripts03:12
jrwrenhrm... for all my smack talk about system packages, I built a venv for flexget just last night.03:12
=== phil is now known as Guest2742

Generated by irclog2html.py 2.7 by Marius Gedminas - find it at mg.pov.lt!