Yocto Project Discussions
 help / color / mirror / Atom feed
From: "Robert P. J. Day" <rpjday@crashcourse.ca>
To: Yocto discussion list <yocto@yoctoproject.org>
Subject: easiest way to enumerate DEPENDS/RDEPENDS for new python3 recipes?
Date: Tue, 16 Jun 2020 14:06:52 -0400 (EDT)	[thread overview]
Message-ID: <alpine.LFD.2.21.2006161354070.28232@localhost.localdomain> (raw)


  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


                 reply	other threads:[~2020-06-16 18:06 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=alpine.LFD.2.21.2006161354070.28232@localhost.localdomain \
    --to=rpjday@crashcourse.ca \
    --cc=yocto@yoctoproject.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox