All of lore.kernel.org
 help / color / mirror / Atom feed
From: "Vincent Prince" <vincent.prince.fr@gmail.com>
To: openembedded-devel@lists.openembedded.org
Subject: Re: [PATCH 18/23] mongodb: skip until python 3.12 fixes are available.
Date: Thu, 30 May 2024 02:21:02 -0700	[thread overview]
Message-ID: <26400.1717060862294940762@lists.openembedded.org> (raw)
In-Reply-To: <4abd75ec-e214-4176-9b73-530d54213680@smile.fr>

[-- Attachment #1: Type: text/plain, Size: 997 bytes --]

Hello

It seems to compile with this patch

diff --git a/buildscripts/moduleconfig.py b/buildscripts/moduleconfig.py
index b4d0bba0490..73c0f1a03fa 100644
--- a/buildscripts/moduleconfig.py
+++ b/buildscripts/moduleconfig.py
@@ -27,7 +27,7 @@ MongoDB SConscript files do.
__all__ = ('discover_modules', 'discover_module_directories', 'configure_modules',
'register_module_test')  # pylint: disable=undefined-all-variable

-import imp
+import importlib
import inspect
import os

@@ -71,7 +71,7 @@ def discover_modules(module_root, allowed_modules):
print("adding module: %s" % (name))
fp = open(build_py, "r")
try:
-                module = imp.load_module("module_" + name, fp, build_py,
+                module = importlib.import_module("module_" + name, fp, build_py,
(".py", "r", imp.PY_SOURCE))
if getattr(module, "name", None) is None:
module.name = name
--
2.34.1

I'm not that confident about it but if it helps :)

Best regards,

Vincent

[-- Attachment #2: Type: text/html, Size: 1756 bytes --]

  reply	other threads:[~2024-05-30  9:21 UTC|newest]

Thread overview: 31+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-12-31 12:23 [PATCH 01/23] fontforge: add a readline PACKAGECONFIG Alexander Kanavin
2023-12-31 12:23 ` [PATCH 02/23] volume-key: disable python bindings Alexander Kanavin
2023-12-31 12:23 ` [PATCH 03/23] audit: disable python bindings as incompatible with python 3.12 Alexander Kanavin
2023-12-31 17:03   ` [oe] " Khem Raj
2024-01-01 18:48     ` Alexander Kanavin
2023-12-31 12:23 ` [PATCH 04/23] cmpi-bindings: update 1.0.1 -> 1.0.4 Alexander Kanavin
2023-12-31 12:23 ` [PATCH 05/23] libpwquality: backport a python 3.12 compatibility patch Alexander Kanavin
2024-01-10 11:43   ` [oe] " Martin Jansa
2024-01-10 11:58     ` Alexander Kanavin
2023-12-31 12:23 ` [PATCH 06/23] mycroft: do not depend on python3-xmlrunner Alexander Kanavin
2023-12-31 12:23 ` [PATCH 07/23] python3-xmlrunner: remove the recipe Alexander Kanavin
2023-12-31 12:23 ` [PATCH 08/23] system-config-printer: rely on setuptools to obtain distutils copy Alexander Kanavin
2023-12-31 12:23 ` [PATCH 09/23] python3-gmpy2: fix python 3.12 issues Alexander Kanavin
2023-12-31 12:23 ` [PATCH 10/23] python3-custom-inherit: fix python 3.12 builds Alexander Kanavin
2023-12-31 12:23 ` [PATCH 11/23] python3-jsonrpcserver: remove Alexander Kanavin
2023-12-31 12:23 ` [PATCH 12/23] python3-oslash: remove Alexander Kanavin
2023-12-31 12:23 ` [PATCH 13/23] nmap: disable ndiff Alexander Kanavin
2023-12-31 12:23 ` [PATCH 14/23] wireshark: update 4.0.10 -> 4.2.0 Alexander Kanavin
2023-12-31 12:23 ` [PATCH 15/23] openipmi: update 2.0.32 -> 2.0.34 Alexander Kanavin
2023-12-31 12:23 ` [PATCH 16/23] libsigrokdecode: add python 3.12 support Alexander Kanavin
2023-12-31 12:23 ` [PATCH 17/23] cockpit: add setuptools dependency to bring in distutils copy Alexander Kanavin
2023-12-31 12:23 ` [PATCH 18/23] mongodb: skip until python 3.12 fixes are available Alexander Kanavin
2024-01-16  9:24   ` Joao Marcos Costa
2024-01-16  9:30     ` Alexander Kanavin
2024-01-16 17:13       ` [oe] " Yoann Congal
2024-05-30  9:21         ` Vincent Prince [this message]
2023-12-31 12:23 ` [PATCH 19/23] mercurial: ensure setuptools is present as distutils is no longer (mercurial tries both) Alexander Kanavin
2023-12-31 12:23 ` [PATCH 20/23] rwmem: fix python modules packaging Alexander Kanavin
2023-12-31 12:23 ` [PATCH 21/23] upm: get disutils copy via setuptools Alexander Kanavin
2023-12-31 12:23 ` [PATCH 22/23] python3-kmod: remove the recipe Alexander Kanavin
2023-12-31 12:23 ` [PATCH 23/23] hplip: provide setuptools for the distutils copy Alexander Kanavin

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=26400.1717060862294940762@lists.openembedded.org \
    --to=vincent.prince.fr@gmail.com \
    --cc=openembedded-devel@lists.openembedded.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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.