[issue43498] "dictionary changed size during iteration" error in _ExecutorManagerThread

2021-08-02 Thread Thomas Petazzoni
Thomas Petazzoni added the comment: I can confirm we are seeing the same issue when building Python 3.9 in the context of Buildroot. See http://autobuild.buildroot.net/results/ae6/ae6c4ab292589a4e4442dfb0a1286349a9bf4d29/build-end.log for an example build result. This happens since we have

[issue43498] "dictionary changed size during iteration" error in _ExecutorManagerThread

2021-08-02 Thread Thomas Petazzoni
Thomas Petazzoni added the comment: For the record: we're seeing this issue ~50 times a day on our build infrastructure. -- ___ Python tracker <https://bugs.python.org/is

[issue20210] Provide configure options to enable/disable Python modules and extensions

2014-03-24 Thread Thomas Petazzoni
Thomas Petazzoni added the comment: No, because it's not simply about the size of the installed Python standard library: it's also about the number of dependencies to build before being able to build Python. For example, a normal Python installation requires OpenSSL, libncurses, a

[issue20210] Provide configure options to enable/disable Python modules and extensions

2014-03-24 Thread Thomas Petazzoni
Thomas Petazzoni added the comment: But this expectation is not true: if dependencies are not available, Python silently disables the build of certain modules. So this story of making the standard library always has all the modules does not really stand

[issue20210] Provide configure options to enable/disable Python modules and extensions

2014-01-09 Thread Thomas Petazzoni
Changes by Thomas Petazzoni : -- type: -> enhancement ___ Python tracker <http://bugs.python.org/issue20210> ___ ___ Python-bugs-list mailing list Unsubscrib

[issue20210] Provide configure options to enable/disable Python modules and extensions

2014-01-09 Thread Thomas Petazzoni
New submission from Thomas Petazzoni: In the context of space-constrained embedded Linux systems, installing the entire set of Python modules and extensions is not necessarily desirable. For example, all the test modules, as well as certain extensions requiring third-parties libraries are

[issue20210] Provide configure options to enable/disable Python modules and extensions

2014-01-09 Thread Thomas Petazzoni
Changes by Thomas Petazzoni : -- keywords: +patch Added file: http://bugs.python.org/file33380/0001-Add-infrastructure-to-disable-the-build-of-certain-e.patch ___ Python tracker <http://bugs.python.org/issue20

[issue20210] Provide configure options to enable/disable Python modules and extensions

2014-01-09 Thread Thomas Petazzoni
Changes by Thomas Petazzoni : Added file: http://bugs.python.org/file33382/0003-Add-an-option-to-disable-pydoc.patch ___ Python tracker <http://bugs.python.org/issue20

[issue20210] Provide configure options to enable/disable Python modules and extensions

2014-01-09 Thread Thomas Petazzoni
Changes by Thomas Petazzoni : Added file: http://bugs.python.org/file33383/0004-Add-an-option-to-disable-lib2to3.patch ___ Python tracker <http://bugs.python.org/issue20

[issue20210] Provide configure options to enable/disable Python modules and extensions

2014-01-09 Thread Thomas Petazzoni
Changes by Thomas Petazzoni : Added file: http://bugs.python.org/file33381/0002-Add-an-option-to-disable-installation-of-test-module.patch ___ Python tracker <http://bugs.python.org/issue20

[issue20210] Provide configure options to enable/disable Python modules and extensions

2014-01-09 Thread Thomas Petazzoni
Changes by Thomas Petazzoni : Added file: http://bugs.python.org/file33384/0005-Add-option-to-disable-the-sqlite3-module.patch ___ Python tracker <http://bugs.python.org/issue20

[issue20210] Provide configure options to enable/disable Python modules and extensions

2014-01-09 Thread Thomas Petazzoni
Changes by Thomas Petazzoni : Added file: http://bugs.python.org/file33385/0006-Add-an-option-to-disable-the-tk-module.patch ___ Python tracker <http://bugs.python.org/issue20

[issue20210] Provide configure options to enable/disable Python modules and extensions

2014-01-09 Thread Thomas Petazzoni
Changes by Thomas Petazzoni : Added file: http://bugs.python.org/file33387/0008-Add-an-option-to-disable-expat.patch ___ Python tracker <http://bugs.python.org/issue20

[issue20210] Provide configure options to enable/disable Python modules and extensions

2014-01-09 Thread Thomas Petazzoni
Changes by Thomas Petazzoni : Added file: http://bugs.python.org/file33386/0007-Add-an-option-to-disable-the-curses-module.patch ___ Python tracker <http://bugs.python.org/issue20

[issue20210] Provide configure options to enable/disable Python modules and extensions

2014-01-09 Thread Thomas Petazzoni
Changes by Thomas Petazzoni : Added file: http://bugs.python.org/file33389/0010-Add-an-option-to-disable-NIS.patch ___ Python tracker <http://bugs.python.org/issue20

[issue20210] Provide configure options to enable/disable Python modules and extensions

2014-01-09 Thread Thomas Petazzoni
Changes by Thomas Petazzoni : Added file: http://bugs.python.org/file33391/0012-Add-an-option-to-disable-IDLE.patch ___ Python tracker <http://bugs.python.org/issue20

[issue20210] Provide configure options to enable/disable Python modules and extensions

2014-01-09 Thread Thomas Petazzoni
Changes by Thomas Petazzoni : Added file: http://bugs.python.org/file33388/0009-Add-an-option-to-disable-CJK-codecs.patch ___ Python tracker <http://bugs.python.org/issue20

[issue20210] Provide configure options to enable/disable Python modules and extensions

2014-01-09 Thread Thomas Petazzoni
Changes by Thomas Petazzoni : Added file: http://bugs.python.org/file33390/0011-Add-an-option-to-disable-unicodedata.patch ___ Python tracker <http://bugs.python.org/issue20

[issue20211] setup.py: do not add invalid header locations

2014-01-09 Thread Thomas Petazzoni
New submission from Thomas Petazzoni: In the cross-compilation case, setup.py incorrectly adds /usr/include to self.compiler.include_dirs, and results in the following invalid compilation line: /home/thomas/projets/buildroot/output/host/usr/bin/arm-none-linux-gnueabi-gcc -fPIC -Wno-unused

[issue20212] distutils: fix build_ext check to find whether we're building Python or not

2014-01-09 Thread Thomas Petazzoni
New submission from Thomas Petazzoni: The build_ext logic uses sys.executable.startswith(os.path.join(sys.exec_prefix, "bin")) to determine whether we're building a third-party Python extension, or a built-in Python extension. However, this check is wrong in cross-compilatio

[issue20213] Change the install location of _sysconfigdata.py

2014-01-09 Thread Thomas Petazzoni
New submission from Thomas Petazzoni: The _sysconfigdata.py module contains definitions that are needed when building Python modules. In cross-compilation mode, when building Python extensions for the target, we need to use the _sysconfigdata.py of the target Python while executing the host

[issue20213] Change the install location of _sysconfigdata.py

2014-02-13 Thread Thomas Petazzoni
Thomas Petazzoni added the comment: The patch is not working as it should be, so I withdraw it for the moment. -- status: open -> closed ___ Python tracker <http://bugs.python.org/issu

[issue20210] Provide configure options to enable/disable Python modules and extensions

2016-06-06 Thread Thomas Petazzoni
Thomas Petazzoni added the comment: Hello, On Sat, 04 Jun 2016 23:33:00 +, Matthias Klose wrote: > fyi, this came up again at the 2016 Language Summit, the request here > was to provide some minimal packages which are just enough to run a > cloud image (the cloud-init package r

[issue26839] Python 3.5 running on Linux kernel 3.17+ can block at startup or on importing the random module on getrandom()

2016-06-07 Thread Thomas Petazzoni
Thomas Petazzoni added the comment: The original problem is that Python wants to generate random numbers at *startup*. Are those random numbers really used for crypto-related activities? I doubt it. So isn't the proper solution to have two functions, one delivering random numbers tha

[issue26852] add the '--enable-legacy-pyc-files' option to configure

2016-07-28 Thread Thomas Petazzoni
Thomas Petazzoni added the comment: I can also say that in the Buildroot project, we have patches to get rid of the PEP3147 stuff. Indeed, the PEP3147 forces one to have both the .py *and* the .pyc file for a given module. If you have only the .pyc file, Python does not recognize it and it

[issue26852] add the '--enable-legacy-pyc-files' option to configure

2016-07-28 Thread Thomas Petazzoni
Thomas Petazzoni added the comment: See https://git.buildroot.org/buildroot/tree/package/python3/0016-Add-importlib-fix-for-PEP-3147-issue.patch -- ___ Python tracker <http://bugs.python.org/issue26

[issue27640] add the '--disable-test-suite' option to configure

2016-07-28 Thread Thomas Petazzoni
Thomas Petazzoni added the comment: We have a similar patch in Buildroot (see https://git.buildroot.org/buildroot/tree/package/python3/0017-Add-an-option-to-disable-installation-of-test-module.patch) so we would be very happy to see this patch merged. Note that we also have many more patches

[issue26852] add the '--enable-legacy-pyc-files' option to configure

2016-07-28 Thread Thomas Petazzoni
Thomas Petazzoni added the comment: No, if you remove PEP3147 (like the Buildroot patch does), and install only the .pyc files, you have a smaller Python installation, and nothing gets "re-generated", since what you already have are the .pyc files. The .py files are not even instal

[issue23767] Library and include paths not added when cross compiling on localized sytem

2015-05-29 Thread Thomas Petazzoni
Thomas Petazzoni added the comment: I confirm seeing the same issue. This patch fixes it. -- nosy: +thomas-petazzoni ___ Python tracker <http://bugs.python.org/issue23

[issue25420] "import random" blocks on entropy collection on Linux with low entropy

2015-12-23 Thread Thomas Petazzoni
Thomas Petazzoni added the comment: I can confirm that I'm affected by the same issue. Booting a simple Linux system on a Qemu ARM platform, the python startup hangs during 25 seconds due to the call to getrandom(). I am not doing anything with Python, just starting the Python interp

[issue25420] "import random" blocks on entropy collection on Linux with low entropy

2015-12-23 Thread Thomas Petazzoni
Thomas Petazzoni added the comment: Obviously I did my math wrong: it waits 45 seconds in getrandom(), not 25 seconds. See my strace log. -- ___ Python tracker <http://bugs.python.org/issue25

[issue20210] Provide configure options to enable/disable Python modules and extensions

2015-03-03 Thread Thomas Petazzoni
Thomas Petazzoni added the comment: @Mark I would be happy to, but if you refer to the previous discussion about this bug report, the feedback was quite negative. And since I'm not really willing to do some clean up to finally get the patches rejected, I'd like to at least