Skip to contentSkip to conversation

tools: u_boot_pylib: disable standalone module detection

PATCH New Paul HENRYS 2 participants 4 messages Mar 30 – Apr 3 1 message not in the archive

lore
Share & tools
lore

A message that is not in the archive (sent off-list or not yet received): [email protected]

#1 lore raw

PATCH 1/1 tools: u_boot_pylib: disable standalone module detection

Do not try to detect standalone python modules at the top level, so setuptools stops searching for: command, terminal, ... as independent modules and instead relies on package discovery.

---
 tools/u_boot_pylib/pyproject.toml | 3 +++
 1 file changed, 3 insertions(+)
tools/u_boot_pylib/pyproject.toml +3 -0
index a860d134551..22b364583a0 100644
@@ -21,5 +21,8 @@ classifiers = [
 "Homepage" = "https://docs.u-boot.org"
 "Bug Tracker" = "https://source.denx.de/groups/u-boot/-/issues"
 
+[tool.setuptools]
+py-modules = []
+
 [tool.setuptools.package-data]
 u_boot_pylib = ["*.rst"]
Signature · 1 line
2.43.0
#2 lore raw

Re: [PATCH 0/1] u_boot_pylib: disable standalone module detection

In reply to a message not in the archive

Hi Paul,

Can you please send this to the mailing list too?

Regards,
Simon

Quoted 24 lines · Paul HENRYS

Do not try to detect standalone python modules at the top level, so setuptools stops searching for: command, terminal, ... as independent modules and instead relies on package discovery.

Steps to reproduce the issue without the patch:

git clone https://source.denx.de/u-boot/u-boot.git
cd u-boot
python3 -m venv myenv
source myenv/bin/activate
pip3 install tools/u_boot_pylib/
...
error: Multiple top-level modules discovered in a flat-layout: ['command', 'terminal', 'test_util', 'tout', 'cros_subprocess', 'tools', 'gitutil'].

Paul HENRYS:
tools: u_boot_pylib: disable standalone module detection

 tools/u_boot_pylib/pyproject.toml | 3 +++
 1 file changed, 3 insertions(+)

--
2.43.0

#3 lore raw

Re: [PATCH 0/1] u_boot_pylib: disable standalone module detection

Hi Simon,

My apologies. I actually sent the wrong patch and in principle it was also sent to the mailing list but this first version should be discarded and the second version reviewed. Unfortunately, when I sent the patch version 2, I forgot to add the reference of the first patch series... The second version of this patch series is https://patchwork.ozlabs.org/project/uboot/patch/[email protected]/.
Sorry again for the mess...

Kind regards,
Paul

Quoted 32 lines · Simon Glass

Hi Paul,

Can you please send this to the mailing list too?

Regards,
Simon

Quoted 23 lines · Paul HENRYS

Do not try to detect standalone python modules at the top level, so setuptools stops searching for: command, terminal, ... as independent modules and instead relies on package discovery.

Steps to reproduce the issue without the patch:

git clone https://source.denx.de/u-boot/u-boot.git
cd u-boot
python3 -m venv myenv
source myenv/bin/activate
pip3 install tools/u_boot_pylib/
...
error: Multiple top-level modules discovered in a flat-layout: ['command', 'terminal', 'test_util', 'tout', 'cros_subprocess', 'tools', 'gitutil'].

Paul HENRYS:
tools: u_boot_pylib: disable standalone module detection

  tools/u_boot_pylib/pyproject.toml | 3 +++
  1 file changed, 3 insertions(+)

--
2.43.0

#4 lore raw

Re: [PATCH 0/1] u_boot_pylib: disable standalone module detection

Hi Paul,

No worries, sorry I missed the other patch!

- Simon

Quoted 47 lines · Paul HENRYS

Hi Simon,

My apologies. I actually sent the wrong patch and in principle it was also sent to the mailing list but this first version should be discarded and the second version reviewed. Unfortunately, when I sent the patch version 2, I forgot to add the reference of the first patch series... The second version of this patch series is
https://patchwork.ozlabs.org/project/uboot/patch/[email protected]/.
Sorry again for the mess...

Kind regards,
Paul

Quoted 32 lines · Simon Glass

Hi Paul,

Can you please send this to the mailing list too?

Regards,
Simon

Quoted 23 lines · Paul HENRYS

Do not try to detect standalone python modules at the top level, so setuptools stops searching for: command, terminal, ... as independent modules and instead relies on package discovery.

Steps to reproduce the issue without the patch:

git clone https://source.denx.de/u-boot/u-boot.git
cd u-boot
python3 -m venv myenv
source myenv/bin/activate
pip3 install tools/u_boot_pylib/
...
error: Multiple top-level modules discovered in a flat-layout: ['command', 'terminal', 'test_util', 'tout', 'cros_subprocess', 'tools', 'gitutil'].

Paul HENRYS:
tools: u_boot_pylib: disable standalone module detection

  tools/u_boot_pylib/pyproject.toml | 3 +++
  1 file changed, 3 insertions(+)

--
2.43.0