Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #21924
| From | Ben Finney <ben+python@benfinney.id.au> |
|---|---|
| Newsgroups | comp.lang.python |
| Subject | Re: pypi and dependencies |
| References | <mailman.814.1332176048.3037.python-list@python.org> |
| Date | 2012-03-20 22:18 +1100 |
| Message-ID | <87bonrmsfk.fsf@benfinney.id.au> (permalink) |
| Organization | Unlimited download news at news.astraweb.com |
Andrea Crotti <andrea.crotti.0@gmail.com> writes: > When I publish something on Pypi, is there a way to make it fetch the list > of dependencies needed by my project automatically? > > It would be nice to have it in the Pypi page, without having to look at the > actual code.. Sadly, no. The metadata available for packages on PyPI does not include information about the dependencies. (I'd love to be wrong about that, but I'm pretty certain that for most, if not all, packages that's the case.) > Any other possible solution? All the solutions I've seen involve fetching the full package in order to unpack it and *then* parse it for dependencies. This is very sub-optimal, and I believe people are working on it; but fixing it will at least require adjustment to all existing packages that don't have dependencies in their metadata. -- \ “Some people have a problem, and they think “I know, I'll use | `\ Perl!”. Now they have some number of problems but they're not | _o__) sure whether it's a string or an integer.” —Benno Rice, 2011 | Ben Finney
Back to comp.lang.python | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
pypi and dependencies Andrea Crotti <andrea.crotti.0@gmail.com> - 2012-03-19 16:54 +0000
Re: pypi and dependencies Ben Finney <ben+python@benfinney.id.au> - 2012-03-20 22:18 +1100
Re: pypi and dependencies Andrea Crotti <andrea.crotti.0@gmail.com> - 2012-03-20 12:01 +0000
Re: pypi and dependencies deets@web.de (Diez B. Roggisch) - 2012-03-21 12:38 +0100
Re: pypi and dependencies Andrea Crotti <andrea.crotti.0@gmail.com> - 2012-03-21 13:03 +0000
csiph-web