* building python-inflect ?
@ 2023-04-04 20:21 Joakim Tjernlund
2023-04-04 23:45 ` [bitbake-devel] " Ernst Sjöstrand
0 siblings, 1 reply; 6+ messages in thread
From: Joakim Tjernlund @ 2023-04-04 20:21 UTC (permalink / raw)
To: bitbake-devel
Trying to make a .bb for python-inflect, https://github.com/jaraco/inflect but this pkg
does not have a setup.py, only a setup.cfg
I do not speak python and cannot work out what to do, I got(can someone help me fill in the missing part?):
SUMMARY = "A port of Ruby on Rails' inflection to Python."
HOMEPAGE = "https://pypi.org/project/inflect"
LICENSE = "MIT"
SECTION = "devel/python"
#LIC_FILES_CHKSUM = "file://LICENSE;md5=2fb6fa1a6f1792d78de19ad1bb653c31"
LIC_FILES_CHKSUM = "file://LICENSE;md5=7a7126e068206290f3fe9f8d6c713ea6"
SRC_URI[md5sum] = "e7aad8f161ee9c85c7d125af69ae661f"
SRC_URI[sha256sum] = "f1a6bcb0105046f89619fde1a7d044c612c614c2d85ef182582d9dc9b86d309a"
inherit pypi ptest
SRC_URI +=" \
file://run-ptest \
"
#DEPENDS = "python3-pydantic"
RDEPENDS:${PN} = "python3-pydantic"
RDEPENDS:${PN}_ptest +=" \
${PYTHON_PN}_pytest \
"
do_install_ptest() {
cp -f ${S}/test_inflection.py ${D}${PTEST_PATH}/
}
RDEPENDS:${PN} += "${PYTHON_PN}-pytest"
BBCLASSEXTEND = "native nativesdk"
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [bitbake-devel] building python-inflect ?
2023-04-04 20:21 building python-inflect ? Joakim Tjernlund
@ 2023-04-04 23:45 ` Ernst Sjöstrand
2023-04-05 9:09 ` Joakim Tjernlund
[not found] ` <1752FECABD82DFDB.3977@lists.openembedded.org>
0 siblings, 2 replies; 6+ messages in thread
From: Ernst Sjöstrand @ 2023-04-04 23:45 UTC (permalink / raw)
To: Joakim Tjernlund; +Cc: bitbake-devel
I think you want to add
inherit python_setuptools_build_meta
Regards
//Ernst
Den tis 4 apr. 2023 kl 22:21 skrev Joakim Tjernlund
<Joakim.Tjernlund@infinera.com>:
>
> Trying to make a .bb for python-inflect, https://github.com/jaraco/inflect but this pkg
> does not have a setup.py, only a setup.cfg
>
> I do not speak python and cannot work out what to do, I got(can someone help me fill in the missing part?):
>
> SUMMARY = "A port of Ruby on Rails' inflection to Python."
> HOMEPAGE = "https://pypi.org/project/inflect"
> LICENSE = "MIT"
> SECTION = "devel/python"
> #LIC_FILES_CHKSUM = "file://LICENSE;md5=2fb6fa1a6f1792d78de19ad1bb653c31"
> LIC_FILES_CHKSUM = "file://LICENSE;md5=7a7126e068206290f3fe9f8d6c713ea6"
>
> SRC_URI[md5sum] = "e7aad8f161ee9c85c7d125af69ae661f"
> SRC_URI[sha256sum] = "f1a6bcb0105046f89619fde1a7d044c612c614c2d85ef182582d9dc9b86d309a"
>
> inherit pypi ptest
>
> SRC_URI +=" \
> file://run-ptest \
> "
> #DEPENDS = "python3-pydantic"
> RDEPENDS:${PN} = "python3-pydantic"
>
> RDEPENDS:${PN}_ptest +=" \
> ${PYTHON_PN}_pytest \
> "
>
> do_install_ptest() {
> cp -f ${S}/test_inflection.py ${D}${PTEST_PATH}/
> }
>
>
> RDEPENDS:${PN} += "${PYTHON_PN}-pytest"
>
> BBCLASSEXTEND = "native nativesdk"
>
>
> -=-=-=-=-=-=-=-=-=-=-=-
> Links: You receive all messages sent to this group.
> View/Reply Online (#14634): https://lists.openembedded.org/g/bitbake-devel/message/14634
> Mute This Topic: https://lists.openembedded.org/mt/98068636/4947266
> Group Owner: bitbake-devel+owner@lists.openembedded.org
> Unsubscribe: https://lists.openembedded.org/g/bitbake-devel/unsub [ernstp@gmail.com]
> -=-=-=-=-=-=-=-=-=-=-=-
>
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [bitbake-devel] building python-inflect ?
2023-04-04 23:45 ` [bitbake-devel] " Ernst Sjöstrand
@ 2023-04-05 9:09 ` Joakim Tjernlund
2023-04-05 10:20 ` Ernst Sjöstrand
[not found] ` <1752FECABD82DFDB.3977@lists.openembedded.org>
1 sibling, 1 reply; 6+ messages in thread
From: Joakim Tjernlund @ 2023-04-05 9:09 UTC (permalink / raw)
To: ernstp; +Cc: bitbake-devel
On Wed, 2023-04-05 at 01:45 +0200, Ernst Sjöstrand wrote:
> I think you want to add
> inherit python_setuptools_build_meta
Thank for your help, I looked for python_setuptools_build_meta in dunfell but seem only to be in kirkstone :(
Is there some other way in dunfell ?
The exact problem we have is that it builds/installs fine in both native and nativesdk but is only
useable in native, in natetivsdk one get a No such module when trying to import the module.
Jocke
>
> Regards
> //Ernst
>
> Den tis 4 apr. 2023 kl 22:21 skrev Joakim Tjernlund
> <Joakim.Tjernlund@infinera.com>:
> >
> > Trying to make a .bb for python-inflect, https://github.com/jaraco/inflect but this pkg
> > does not have a setup.py, only a setup.cfg
> >
> > I do not speak python and cannot work out what to do, I got(can someone help me fill in the missing part?):
> >
> > SUMMARY = "A port of Ruby on Rails' inflection to Python."
> > HOMEPAGE = "https://pypi.org/project/inflect"
> > LICENSE = "MIT"
> > SECTION = "devel/python"
> > #LIC_FILES_CHKSUM = "file://LICENSE;md5=2fb6fa1a6f1792d78de19ad1bb653c31"
> > LIC_FILES_CHKSUM = "file://LICENSE;md5=7a7126e068206290f3fe9f8d6c713ea6"
> >
> > SRC_URI[md5sum] = "e7aad8f161ee9c85c7d125af69ae661f"
> > SRC_URI[sha256sum] = "f1a6bcb0105046f89619fde1a7d044c612c614c2d85ef182582d9dc9b86d309a"
> >
> > inherit pypi ptest
> >
> > SRC_URI +=" \
> > file://run-ptest \
> > "
> > #DEPENDS = "python3-pydantic"
> > RDEPENDS:${PN} = "python3-pydantic"
> >
> > RDEPENDS:${PN}_ptest +=" \
> > ${PYTHON_PN}_pytest \
> > "
> >
> > do_install_ptest() {
> > cp -f ${S}/test_inflection.py ${D}${PTEST_PATH}/
> > }
> >
> >
> > RDEPENDS:${PN} += "${PYTHON_PN}-pytest"
> >
> > BBCLASSEXTEND = "native nativesdk"
> >
> >
> > -=-=-=-=-=-=-=-=-=-=-=-
> > Links: You receive all messages sent to this group.
> > View/Reply Online (#14634): https://lists.openembedded.org/g/bitbake-devel/message/14634
> > Mute This Topic: https://lists.openembedded.org/mt/98068636/4947266
> > Group Owner: bitbake-devel+owner@lists.openembedded.org
> > Unsubscribe: https://lists.openembedded.org/g/bitbake-devel/unsub [ernstp@gmail.com]
> > -=-=-=-=-=-=-=-=-=-=-=-
> >
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [bitbake-devel] building python-inflect ?
[not found] ` <1752FECABD82DFDB.3977@lists.openembedded.org>
@ 2023-04-05 9:46 ` Joakim Tjernlund
0 siblings, 0 replies; 6+ messages in thread
From: Joakim Tjernlund @ 2023-04-05 9:46 UTC (permalink / raw)
To: ernstp; +Cc: bitbake-devel
On Wed, 2023-04-05 at 09:09 +0000, Joakim Tjernlund via lists.openembedded.org wrote:
> On Wed, 2023-04-05 at 01:45 +0200, Ernst Sjöstrand wrote:
> > I think you want to add
> > inherit python_setuptools_build_meta
>
> Thank for your help, I looked for python_setuptools_build_meta in dunfell but seem only to be in kirkstone :(
> Is there some other way in dunfell ?
>
> The exact problem we have is that it builds/installs fine in both native and nativesdk but is only
> useable in native, in natetivsdk one get a No such module when trying to import the module.
I should also mention that "inherit setuptools3" make the build fail with with missing setup.py error msg.
>
> Jocke
> >
> > Regards
> > //Ernst
> >
> > Den tis 4 apr. 2023 kl 22:21 skrev Joakim Tjernlund
> > <Joakim.Tjernlund@infinera.com>:
> > >
> > > Trying to make a .bb for python-inflect, https://github.com/jaraco/inflect but this pkg
> > > does not have a setup.py, only a setup.cfg
> > >
> > > I do not speak python and cannot work out what to do, I got(can someone help me fill in the missing part?):
> > >
> > > SUMMARY = "A port of Ruby on Rails' inflection to Python."
> > > HOMEPAGE = "https://pypi.org/project/inflect"
> > > LICENSE = "MIT"
> > > SECTION = "devel/python"
> > > #LIC_FILES_CHKSUM = "file://LICENSE;md5=2fb6fa1a6f1792d78de19ad1bb653c31"
> > > LIC_FILES_CHKSUM = "file://LICENSE;md5=7a7126e068206290f3fe9f8d6c713ea6"
> > >
> > > SRC_URI[md5sum] = "e7aad8f161ee9c85c7d125af69ae661f"
> > > SRC_URI[sha256sum] = "f1a6bcb0105046f89619fde1a7d044c612c614c2d85ef182582d9dc9b86d309a"
> > >
> > > inherit pypi ptest
> > >
> > > SRC_URI +=" \
> > > file://run-ptest \
> > > "
> > > #DEPENDS = "python3-pydantic"
> > > RDEPENDS:${PN} = "python3-pydantic"
> > >
> > > RDEPENDS:${PN}_ptest +=" \
> > > ${PYTHON_PN}_pytest \
> > > "
> > >
> > > do_install_ptest() {
> > > cp -f ${S}/test_inflection.py ${D}${PTEST_PATH}/
> > > }
> > >
> > >
> > > RDEPENDS:${PN} += "${PYTHON_PN}-pytest"
> > >
> > > BBCLASSEXTEND = "native nativesdk"
> > >
> > >
> > >
> > >
>
> -=-=-=-=-=-=-=-=-=-=-=-
> Links: You receive all messages sent to this group.
> View/Reply Online (#14640): https://lists.openembedded.org/g/bitbake-devel/message/14640
> Mute This Topic: https://lists.openembedded.org/mt/98068636/7472049
> Group Owner: bitbake-devel+owner@lists.openembedded.org
> Unsubscribe: https://lists.openembedded.org/g/bitbake-devel/unsub [Joakim.Tjernlund@infinera.com]
> -=-=-=-=-=-=-=-=-=-=-=-
>
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [bitbake-devel] building python-inflect ?
2023-04-05 9:09 ` Joakim Tjernlund
@ 2023-04-05 10:20 ` Ernst Sjöstrand
2023-04-05 10:26 ` Joakim Tjernlund
0 siblings, 1 reply; 6+ messages in thread
From: Ernst Sjöstrand @ 2023-04-05 10:20 UTC (permalink / raw)
To: Joakim Tjernlund; +Cc: bitbake-devel
[-- Attachment #1: Type: text/plain, Size: 2635 bytes --]
Ah you didn't mention dunfell.
Luckily I have a solution for you!
https://github.com/ernstp/meta-setuptools-backport
Regards
/Ernst
Den ons 5 apr. 2023 11:09Joakim Tjernlund <Joakim.Tjernlund@infinera.com>
skrev:
> On Wed, 2023-04-05 at 01:45 +0200, Ernst Sjöstrand wrote:
> > I think you want to add
> > inherit python_setuptools_build_meta
>
> Thank for your help, I looked for python_setuptools_build_meta in dunfell
> but seem only to be in kirkstone :(
> Is there some other way in dunfell ?
>
> The exact problem we have is that it builds/installs fine in both native
> and nativesdk but is only
> useable in native, in natetivsdk one get a No such module when trying to
> import the module.
>
> Jocke
> >
> > Regards
> > //Ernst
> >
> > Den tis 4 apr. 2023 kl 22:21 skrev Joakim Tjernlund
> > <Joakim.Tjernlund@infinera.com>:
> > >
> > > Trying to make a .bb for python-inflect,
> https://github.com/jaraco/inflect but this pkg
> > > does not have a setup.py, only a setup.cfg
> > >
> > > I do not speak python and cannot work out what to do, I got(can
> someone help me fill in the missing part?):
> > >
> > > SUMMARY = "A port of Ruby on Rails' inflection to Python."
> > > HOMEPAGE = "https://pypi.org/project/inflect"
> > > LICENSE = "MIT"
> > > SECTION = "devel/python"
> > > #LIC_FILES_CHKSUM =
> "file://LICENSE;md5=2fb6fa1a6f1792d78de19ad1bb653c31"
> > > LIC_FILES_CHKSUM =
> "file://LICENSE;md5=7a7126e068206290f3fe9f8d6c713ea6"
> > >
> > > SRC_URI[md5sum] = "e7aad8f161ee9c85c7d125af69ae661f"
> > > SRC_URI[sha256sum] =
> "f1a6bcb0105046f89619fde1a7d044c612c614c2d85ef182582d9dc9b86d309a"
> > >
> > > inherit pypi ptest
> > >
> > > SRC_URI +=" \
> > > file://run-ptest \
> > > "
> > > #DEPENDS = "python3-pydantic"
> > > RDEPENDS:${PN} = "python3-pydantic"
> > >
> > > RDEPENDS:${PN}_ptest +=" \
> > > ${PYTHON_PN}_pytest \
> > > "
> > >
> > > do_install_ptest() {
> > > cp -f ${S}/test_inflection.py ${D}${PTEST_PATH}/
> > > }
> > >
> > >
> > > RDEPENDS:${PN} += "${PYTHON_PN}-pytest"
> > >
> > > BBCLASSEXTEND = "native nativesdk"
> > >
> > >
> > > -=-=-=-=-=-=-=-=-=-=-=-
> > > Links: You receive all messages sent to this group.
> > > View/Reply Online (#14634):
> https://lists.openembedded.org/g/bitbake-devel/message/14634
> > > Mute This Topic: https://lists.openembedded.org/mt/98068636/4947266
> > > Group Owner: bitbake-devel+owner@lists.openembedded.org
> > > Unsubscribe: https://lists.openembedded.org/g/bitbake-devel/unsub [
> ernstp@gmail.com]
> > > -=-=-=-=-=-=-=-=-=-=-=-
> > >
>
>
[-- Attachment #2: Type: text/html, Size: 4488 bytes --]
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [bitbake-devel] building python-inflect ?
2023-04-05 10:20 ` Ernst Sjöstrand
@ 2023-04-05 10:26 ` Joakim Tjernlund
0 siblings, 0 replies; 6+ messages in thread
From: Joakim Tjernlund @ 2023-04-05 10:26 UTC (permalink / raw)
To: ernstp; +Cc: bitbake-devel
[-- Attachment #1: Type: text/plain, Size: 2977 bytes --]
On Wed, 2023-04-05 at 12:20 +0200, Ernst Sjöstrand wrote:
Ah you didn't mention dunfell.
Luckily I have a solution for you!
Nice! I will have a look :)
One note, I see you have added python3-pydantic-1.10.7<https://github.com/ernstp/meta-setuptools-backport/commit/49bbf39cc8feac4eaa46b83b189a1a0f0d384e2e>
This version is incompatible with current python-inflect-6.0.2, needs pydantic-1.9.2
Jocke
https://github.com/ernstp/meta-setuptools-backport
Regards
/Ernst
Den ons 5 apr. 2023 11:09Joakim Tjernlund <Joakim.Tjernlund@infinera.com<mailto:Joakim.Tjernlund@infinera.com>> skrev:
On Wed, 2023-04-05 at 01:45 +0200, Ernst Sjöstrand wrote:
> I think you want to add
> inherit python_setuptools_build_meta
Thank for your help, I looked for python_setuptools_build_meta in dunfell but seem only to be in kirkstone :(
Is there some other way in dunfell ?
The exact problem we have is that it builds/installs fine in both native and nativesdk but is only
useable in native, in natetivsdk one get a No such module when trying to import the module.
Jocke
>
> Regards
> //Ernst
>
> Den tis 4 apr. 2023 kl 22:21 skrev Joakim Tjernlund
> <Joakim.Tjernlund@infinera.com<mailto:Joakim.Tjernlund@infinera.com>>:
> >
> > Trying to make a .bb for python-inflect, https://github.com/jaraco/inflect but this pkg
> > does not have a setup.py, only a setup.cfg
> >
> > I do not speak python and cannot work out what to do, I got(can someone help me fill in the missing part?):
> >
> > SUMMARY = "A port of Ruby on Rails' inflection to Python."
> > HOMEPAGE = "https://pypi.org/project/inflect"
> > LICENSE = "MIT"
> > SECTION = "devel/python"
> > #LIC_FILES_CHKSUM = "file://LICENSE;md5=2fb6fa1a6f1792d78de19ad1bb653c31"
> > LIC_FILES_CHKSUM = "file://LICENSE;md5=7a7126e068206290f3fe9f8d6c713ea6"
> >
> > SRC_URI[md5sum] = "e7aad8f161ee9c85c7d125af69ae661f"
> > SRC_URI[sha256sum] = "f1a6bcb0105046f89619fde1a7d044c612c614c2d85ef182582d9dc9b86d309a"
> >
> > inherit pypi ptest
> >
> > SRC_URI +=" \
> > file://run-ptest \
> > "
> > #DEPENDS = "python3-pydantic"
> > RDEPENDS:${PN} = "python3-pydantic"
> >
> > RDEPENDS:${PN}_ptest +=" \
> > ${PYTHON_PN}_pytest \
> > "
> >
> > do_install_ptest() {
> > cp -f ${S}/test_inflection.py ${D}${PTEST_PATH}/
> > }
> >
> >
> > RDEPENDS:${PN} += "${PYTHON_PN}-pytest"
> >
> > BBCLASSEXTEND = "native nativesdk"
> >
> >
> > -=-=-=-=-=-=-=-=-=-=-=-
> > Links: You receive all messages sent to this group.
> > View/Reply Online (#14634): https://lists.openembedded.org/g/bitbake-devel/message/14634
> > Mute This Topic: https://lists.openembedded.org/mt/98068636/4947266
> > Group Owner: bitbake-devel+owner@lists.openembedded.org<mailto:bitbake-devel%2Bowner@lists.openembedded.org>
> > Unsubscribe: https://lists.openembedded.org/g/bitbake-devel/unsub [ernstp@gmail.com<mailto:ernstp@gmail.com>]
> > -=-=-=-=-=-=-=-=-=-=-=-
> >
[-- Attachment #2: Type: text/html, Size: 7115 bytes --]
^ permalink raw reply [flat|nested] 6+ messages in thread
end of thread, other threads:[~2023-04-05 10:26 UTC | newest]
Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-04-04 20:21 building python-inflect ? Joakim Tjernlund
2023-04-04 23:45 ` [bitbake-devel] " Ernst Sjöstrand
2023-04-05 9:09 ` Joakim Tjernlund
2023-04-05 10:20 ` Ernst Sjöstrand
2023-04-05 10:26 ` Joakim Tjernlund
[not found] ` <1752FECABD82DFDB.3977@lists.openembedded.org>
2023-04-05 9:46 ` Joakim Tjernlund
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).