openembedded-devel.lists.openembedded.org archive mirror
 help / color / mirror / Atom feed
* [meta-oe][PATCH] gpsd: Install also the generated parts of the Python library
@ 2021-10-27 12:41 Matthias Klein
  0 siblings, 0 replies; only message in thread
From: Matthias Klein @ 2021-10-27 12:41 UTC (permalink / raw)
  To: openembedded-devel; +Cc: Matthias Klein

The Python library cannot be copied from the source code directory,
otherwise generated files like gps.py and packet.py are missing.

This is noticed when starting ubxtool which otherwise crashes:

Traceback (most recent call last):
  File "/usr/bin/ubxtool", line 48, in <module>
    import gps.ubx
  File "/usr/lib/python3.10/site-packages/gps/ubx.py", line 244, in <module>
    class ubx(object):
  File "/usr/lib/python3.10/site-packages/gps/ubx.py", line 255, in ubx
    verbosity = gps.VERB_NONE
AttributeError: module 'gps' has no attribute 'VERB_NONE'

Signed-off-by: Matthias Klein <matthias@extraklein.de>
---
 meta-oe/recipes-navigation/gpsd/gpsd_3.23.1.bb | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/meta-oe/recipes-navigation/gpsd/gpsd_3.23.1.bb b/meta-oe/recipes-navigation/gpsd/gpsd_3.23.1.bb
index 4740e0c98..8763c68ed 100644
--- a/meta-oe/recipes-navigation/gpsd/gpsd_3.23.1.bb
+++ b/meta-oe/recipes-navigation/gpsd/gpsd_3.23.1.bb
@@ -72,7 +72,7 @@ do_install:append() {
 
     # Support for python
     install -d ${D}${PYTHON_SITEPACKAGES_DIR}/gps
-    install -m 755 ${S}/gps/*.py ${D}${PYTHON_SITEPACKAGES_DIR}/gps
+    install -m 755 ${D}${libdir}/gps/*.py ${D}${PYTHON_SITEPACKAGES_DIR}/gps
 }
 
 PACKAGES =+ "libgps libgpsd python3-pygps gpsd-udev gpsd-conf gpsd-gpsctl gps-utils"
-- 
2.30.2



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

only message in thread, other threads:[~2021-10-27 12:42 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-10-27 12:41 [meta-oe][PATCH] gpsd: Install also the generated parts of the Python library Matthias Klein

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).