Files
meta-openembedded/meta-oe/recipes-support
Sam Van Den Berge 82cca6d4ed libiio: fix installing libiio when python3 bindings are enabled
This patch fixes the following error when libiio is installed when
python3 bindings are enabled:

ERROR: Execution of '.../libiio/0.21+gitAUTOINC+565bf68ecc-r0/temp/run.do_install.2349473' failed with exit code 1:
running build
running build_py
running install
Traceback (most recent call last):
  File ".../libiio/0.21+gitAUTOINC+565bf68ecc-r0/build/bindings/python/setup.py", line 77, in _check_libiio_installed
    raise OSError
OSError

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File ".../libiio/0.21+gitAUTOINC+565bf68ecc-r0/build/bindings/python/setup.py", line 106, in <module>
    setup(**config)
  File ".../libiio/0.21+gitAUTOINC+565bf68ecc-r0/recipe-sysroot-native/usr/lib/python3.9/site-packages/setuptools/__init__.py", line 153, in setup
    return distutils.core.setup(**attrs)
  File ".../libiio/0.21+gitAUTOINC+565bf68ecc-r0/recipe-sysroot-native/usr/lib/python3.9/distutils/core.py", line 148, in setup
    dist.run_commands()
  File ".../libiio/0.21+gitAUTOINC+565bf68ecc-r0/recipe-sysroot-native/usr/lib/python3.9/distutils/dist.py", line 966, in run_commands
    self.run_command(cmd)
  File ".../libiio/0.21+gitAUTOINC+565bf68ecc-r0/recipe-sysroot-native/usr/lib/python3.9/distutils/dist.py", line 985, in run_command
    cmd_obj.run()
  File ".../libiio/0.21+gitAUTOINC+565bf68ecc-r0/build/bindings/python/setup.py", line 52, in run
    self._check_libiio_installed()
  File "/libiio/0.21+gitAUTOINC+565bf68ecc-r0/build/bindings/python/setup.py", line 83, in _check_libiio_installed
    raise Exception(msg)
Exception: The libiio library could not be found.
            libiio needs to be installed first before the python bindings.
            The latest release can be found on GitHub:
            https://github.com/analogdevicesinc/libiio/releases

Some time ago a fix for this issue was already discussed here [1].
However in the same discussion also a second issue was being handled.

A fix for the second issue was merged in 51f98865da. The first issue
didn't pop up anymore and so a fix was never applied.

Recently however after switching from build machine, I started seeing
the first issue. I suspect due to build caching the first issue didn't
pop up anymore before up until now. With this patch, fixes are now
available for both issues handled in [1].

[1]: https://github.com/openembedded/meta-openembedded/issues/248

Signed-off-by: Sam Van Den Berge <sam.van.den.berge@gmail.com>
Signed-off-by: Armin Kuster <akuster808@gmail.com>
2021-07-13 21:27:07 -07:00
..
2021-01-05 09:16:26 -08:00
2019-02-12 15:47:12 -08:00
2019-05-10 14:07:54 -07:00
2020-03-25 06:52:29 -07:00
2020-07-28 12:23:15 -07:00
2020-06-30 07:58:37 -07:00
2020-07-28 12:52:13 -07:00
2019-08-27 12:11:16 -07:00
2020-09-13 09:28:52 -07:00
2020-11-23 07:09:34 -08:00
2020-10-21 14:11:09 -07:00
2019-09-16 18:24:48 -07:00
2018-08-15 08:20:06 -07:00
2021-04-03 07:46:03 -07:00
2021-02-21 23:44:22 -08:00
2020-03-25 06:52:29 -07:00
2021-05-22 15:34:46 -07:00
2021-03-06 07:53:38 -08:00
2020-12-07 21:55:47 -08:00
2021-03-28 12:12:58 -07:00
2020-01-19 02:20:59 -08:00
2020-12-03 22:32:56 -08:00
2021-02-28 23:51:14 -08:00
2020-07-28 12:52:14 -07:00
2021-03-16 21:37:15 -07:00
2019-09-16 07:10:03 -07:00
2021-03-11 00:12:55 -08:00
2018-12-18 22:15:53 -08:00
2020-08-11 23:37:47 -07:00
2019-09-16 07:10:03 -07:00
2020-09-10 21:20:23 -07:00
2021-01-17 11:47:41 -08:00
2021-04-08 13:13:29 -07:00
2019-07-10 09:34:20 -07:00
2020-02-16 12:52:19 -08:00
2021-02-21 23:44:22 -08:00
2020-08-05 10:02:11 -07:00
2021-03-28 12:12:58 -07:00
2017-08-13 13:20:58 +02:00
2018-11-14 21:06:58 -08:00
2020-11-15 12:25:53 -08:00
2020-11-23 07:09:34 -08:00
2021-04-07 18:45:52 -07:00
2020-01-09 14:05:37 -08:00
2018-03-12 09:59:36 -07:00
2020-12-07 21:55:47 -08:00
2020-10-23 10:20:24 -07:00
2021-04-18 13:49:13 -07:00
2019-06-25 14:21:48 -07:00
2020-07-28 12:52:14 -07:00
2020-08-31 08:30:19 -07:00
2021-03-19 11:58:12 -07:00
2020-02-21 08:50:36 -08:00
2021-03-04 09:04:24 -08:00
2021-03-03 11:08:29 -08:00
2021-03-28 12:12:58 -07:00
2021-01-25 14:34:06 -08:00
2021-03-04 09:04:24 -08:00
2021-03-15 08:46:12 -07:00
2017-07-24 18:57:36 +02:00
2020-10-19 22:18:11 -07:00
2021-07-10 11:25:55 -07:00
2019-08-21 12:41:20 -07:00
2021-05-23 08:28:47 -07:00
2019-11-27 20:07:16 -08:00
2020-10-22 08:14:29 -07:00
2019-07-15 08:00:06 -07:00
2021-04-08 13:13:29 -07:00
2020-11-15 12:26:38 -08:00
2020-04-05 10:38:14 -07:00
2017-01-25 15:58:54 +01:00
2019-05-11 23:35:30 -07:00
2021-02-28 23:51:14 -08:00
2021-03-16 21:37:15 -07:00
2020-03-17 19:46:35 -07:00
2020-03-13 21:27:53 -07:00
2020-11-17 15:01:16 -08:00
2020-12-18 08:23:14 -08:00
2021-01-17 11:47:41 -08:00
2020-04-05 10:38:14 -07:00
2021-03-14 00:00:20 -08:00
2021-02-21 23:37:54 -08:00
2019-09-13 09:21:30 -07:00
2020-06-03 15:15:42 -07:00
2020-12-18 08:23:14 -08:00
2021-03-08 17:24:14 -08:00
2018-04-08 17:00:06 -07:00
2021-03-12 22:11:42 -08:00
2020-12-28 22:27:41 -08:00
2021-01-30 22:56:51 -08:00
2021-02-06 21:52:33 -08:00
2020-11-12 21:03:29 -08:00