On May 26, 8:06 am, Wyatt Baldwin <[email protected]> wrote: > > [...] > > So, a proposal for Pylons 1.1 or later: remove all deps from Pylons' > setup.py that are not used directly by Pylons.
In case anyone's interested, these are the dependencies in the Pylons source (excluding stdlib): decorator formencode nose paste paste.deploy paste.script pkg_resources (could almost be considered part of stdlib) simplejson tempita weberror webhelpers webob Total: 12 (or 11 if you don't include pkg_resources) Methodology (admittedly a little sloppy): - cd to Pylons egg directory in site-packages - find . -name '*.py' | grep -v ez_setup.py | xargs egrep -h '^(import| from)' | grep -v pylons | sort | uniq > ~/pylons-imports - use vim search-and-replace to get just the package name - manually prune stdlib lines And here are the dependencies listed in Pylons' setup.py: Beaker (move to project template?) decorator FormEncode Mako (move to project template?) nose (move to test_requires, so users aren't forced to install?) Paste PasteDeploy PasteScript Routes (move to project template?) simplejson (detect user's Python version and only include this if needed?) Tempita WebError WebHelpers WebOb WebTest Total: 15 In the end, a few opportunities for decoupling; not as many as I would have thought, but perhaps more is possible without too much effort. Devs: if there's interest, I'll submit a ticket and work on a patch. -- You received this message because you are subscribed to the Google Groups "pylons-discuss" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/pylons-discuss?hl=en.
