Yocto Project Discussions
 help / color / mirror / Atom feed
* easiest way to enumerate DEPENDS/RDEPENDS for new python3 recipes?
@ 2020-06-16 18:06 Robert P. J. Day
  0 siblings, 0 replies; only message in thread
From: Robert P. J. Day @ 2020-06-16 18:06 UTC (permalink / raw)
  To: Yocto discussion list


  apparently, i and a couple other people are responsible for whipping
up a bunch of python3 recipes that currently do not exist; we're going
to standardize on what seems to be the most popular format -- recipes
that inherit both "pypi" and "setuptools3", which make the recipes
pretty straightforward, except for figuring out the proper build and
run-time dependencies in some cases.

  as one example, there is no recipe in the OE layers for
python3-foolscap, but if one pops over to pypi.org, then follows to
the online source:

  https://github.com/warner/foolscap/

the "setup.py" file gives away the RDEPENDS with:

  "install_requires": ["six", "twisted[tls] >= 16.0.0", "pyOpenSSL"],

the other trick i found is to use "pipoe" and see what it comes up
with and, sure enough, for foolscap, pipoe generates a recipe
containing the matching line:

  RDEPENDS_${PN} = "python3-six python3-twisted python3-pyopenssl"

  in other cases, though, it's not at all obvious, for instance with
the existing recipe python3-lxml from meta-python, which spells out
the dependencies:

  DEPENDS += "libxml2 libxslt"
  RDEPENDS_${PN} += "libxml2 libxslt ${PYTHON_PN}-compression"

however, the source for python3-lxml has no informative
"install_requires", whereupon pipoe fails similarly by generating:

  RDEPENDS_${PN} = ""

so, other than trial and error, is there a standard strategy to
determine the dependencies of a new python3 package is the setup.py
file is not forthcoming? (i'm still working my way through learning
python.)

rday


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2020-06-16 18:06 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2020-06-16 18:06 easiest way to enumerate DEPENDS/RDEPENDS for new python3 recipes? Robert P. J. Day

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox