[09:18:31] <Lope> Where should I put get-pip.py script? should I run it as admin?
[09:19:15] <pf_moore> Lope: Anywhere you like, you just run it once and can then delete it
[09:19:56] <pf_moore> Lope: What system are you on? You only need to run it as admin if the Python interpreter you're using to dun it as needs admin privs to install stuff in it
[09:20:26] <pf_moore> Lope: So basically no on Windows, and no on Unix unless you're updating the system, Python which you probably shouldn't do with get-pip
[13:09:23] <peteretep> CPAN has automated static code quality metrics that run over all distributions and are published; has someone seen anything similar for pypi?
[13:11:15] <doismellburning> peteretep: I would love to see landscape do that (ping carlio)
[13:11:39] <peteretep> doismellburning: What is landscape?
[13:23:32] <peteretep> In case you're interested, I am wondering about building such a thing for Haskell / Cabal for my MSc
[13:23:39] <Wooble> ionelmc: that's why we need someone very opinionated about what the best practices are to build a site that gives every package a score people can be angry about :)
[13:23:53] <peteretep> Ironic that Python doesn't have that and Perl does ;-)
[13:34:59] <peteretep> Ultimately your packaging data needs to become data, rather than .py
[13:35:00] <mgedmin> yeah, "let's rewrite everything from scratch ignoring backwards compatibility" is not a good approach
[13:35:06] <doismellburning> mgedmin: and again, amen
[13:35:34] <ionelmc> doesn't seem to have much success beyond the openstack packages, that, ironically, are published to pypi with broken or missing metadata
[13:35:38] <peteretep> mgedmin: If you do it right, you generate setup.py from your replacement of it
[13:35:38] <mgedmin> but people who're doing the current packaging push understand that
[13:35:49] <peteretep> mgedmin: As part of the build process
[13:38:11] <dstufft> distutils2 had the problem whjere it tried to replace the entire toolchain at once
[13:38:28] <dstufft> instead of incrementally adding things to it
[13:41:27] <DanielHolth> IMO the big mistake of distutils2 was trying to replace setuptools by re-standardizing on distutils. Unfortunately distutils is terrible.
[13:42:28] <doismellburning> this setup.py imports from both distutils and setuptools
[13:43:38] <DanielHolth> But they standardized improved metadata. It makes sense to standardize the metadata and the interface to the build system, but it's not a good idea to standardize the build system. Build systems are in general too complicated to be re-implemented compatibly, and the handful-of-C-files extension will always have much different needs than numpy.
[13:47:52] <DanielHolth> Also it is pretty simple to implement enough of the setup.py interface to drive a new build system, if you want.
[13:48:59] <DanielHolth> Main thing lately is that we just don't have a lot of people trying to write better Python build systems.
[13:59:14] <dstufft> well unless you mean what's available on https://pypi.python.org/pypi/<package>/json
[14:04:22] <Wooble> The "local mirroring and caching" link to https://packaging.python.org/en/latest/deployment.html#pypi-mirrors-and-caches (from pypi.python.org/pypi) is broken... that anchor no longer exists on that page.
[14:12:36] <ionelmc> dstufft: anything like that for all the packages ? Just a list of names
[14:17:25] <peteretep> Still think you're better off making setup.py auto-generated from whatever DSL you end up choosing
[14:17:32] <peteretep> that way you have an actual guarantee of backward compatibility
[14:17:42] <peteretep> You can have failed experiments that don't leave too much detritus
[14:17:59] <peteretep> And if your "DSL" is actually just data, you can automatically convert it when the new shiny comes along
[14:32:11] <ionelmc> From my perspective the most jarring thing about distutils2 is the failure to remove the package/module distinction and remove the useless package list. No one needs it, automatic discovery should be the default
[14:35:26] <doismellburning> ionelmc: so, what IS the difference between a package and a module?
[14:36:31] <ionelmc> doismellburning: packages vs py_modules in setup.py
[14:38:05] <dstufft> ionelmc: distutils2 was "let's cram the stuff people put in setup.py in setup.cfg and not really try to advance much beyond that"
[18:05:36] <doismellburning> anyone able to point me at good docs on providing integration with `setup.py test`?
[18:06:25] <Yasumoto> doismellburning: not sure if this is quite what you're looking for, but I've had some good luck with tox- https://tox.readthedocs.org/en/latest/
[18:06:48] <doismellburning> Yasumoto: not really, but thanks
[18:07:14] <doismellburning> I have an existing test suite run with `django-admin.py test --settings=wibble`, and I'd like to make that runnable with `setup.py test`
[18:07:37] <doismellburning> (mostly so I can use `test_requires`, and not have to manually install test dependencies beforehand)
[18:09:03] <ionelmc> doismellburning: imho doing custom command stuff in setup.py is just asking for trouble - as that file is run when your package is installed
[18:09:24] <ionelmc> people like to do it, cause it looks convenient
[18:09:35] <ionelmc> but there are no services that use setup.py test
[18:09:59] <ionelmc> and tox is generally better/more flexible
[18:18:32] <DanielHolth> it's also really common to do extras_require : {'test':[test, requires]} then you can install yourpackage[test] and have the test requirements installed.
[18:18:50] <carljm> doismellburning: also, test_requires is just kind of nasty. it dumps the test dependencies right into cwd as eggs
[18:27:44] <carlio> DanielHolth: oo, i like that idea
[18:39:13] <carlio> does anyone know @pydanny (of django two-scoops fame) enough for an email intro?
[18:41:49] <dstufft> carlio: doismellburning Yasumoto techincally setup.py test and tox serve different purposes, your tox command could run setup.py test
[18:49:06] <Yasumoto> dstufft: ah, that's a good distinction
[20:09:31] <carljm> dstufft: Yes, I realize that - but I still think the existence of tox means there aren't very many good reasons to jump through hoops to make setup.py test work.
[20:11:07] <carljm> (a lot of my Django apps actually do support setup.py test, but I wouldn't bother with a new one)
[20:11:40] <carljm> doismellburning: if you do want to make setup.py test, work, here's an example, it's not hard: https://github.com/carljm/django-model-utils/blob/master/setup.py
[20:12:46] <carljm> basically you just have to make a callable that runs the tests, and reference it as dotted path in the test_suite setup kwarg