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

2017-05-27 Thread Xavier de Gaye
Xavier de Gaye added the comment: New changeset c0364fc7c2693fb070917ee62aeb8d2551710821 by xdegaye in branch 'master': bpo-20210: Support the *disabled* marker in Setup files (GH-132) https://github.com/python/cpython/commit/c0364fc7c2693fb070917ee62aeb8d2551710821 --

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

2017-05-22 Thread Thomas Wouters
Thomas Wouters added the comment: This feature would also be nice to have for Python at Google: we want builds to be as reproducible as possible, avoid third-party libraries even when they are available on the build system, and avoid certain extension modules in any form. We currently delete

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

2017-02-16 Thread Xavier de Gaye
Xavier de Gaye added the comment: The PR https://github.com/python/cpython/pull/132 implements the support of the *disabled* marker in a Setup file as suggested by Martin. -- versions: +Python 3.7 -Python 3.5 ___ Python tracker

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

2017-02-16 Thread Xavier de Gaye
Changes by Xavier de Gaye : -- pull_requests: +92 ___ Python tracker ___ ___

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

2017-02-10 Thread Matthias Klose
Matthias Klose added the comment: I don't see the point of having an option to do that. Will patches for third party projects be submitted as well, to not install the test suite? Or will pip gain such a feature? Note that removing the test suite completely, you'll make the test suites of

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

2017-02-10 Thread Antoine Pitrou
Antoine Pitrou added the comment: Victor, thanks for clarifying! That eliminates my objection, if there's a tacit agreement that the functionality can be broken by mistake and it's the dedicated maintainer (Xavier or someone else)'s job to repair it :-) --

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

2017-02-10 Thread STINNER Victor
STINNER Victor added the comment: Antoine Pitrou: " Who volunteers to support it? It's a PITA to maintain the configure script and setup.py, and adding options only makes it more painful. This kind of niche features needs some dedicated maintainer so that other core developers don't have to

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

2017-02-10 Thread Marc-Andre Lemburg
Marc-Andre Lemburg added the comment: I'm still -1 on the approach taken by the OP, but +1 on Martin's approach of making such configurations more easily possible via Modules/Setup. -- ___ Python tracker

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

2017-02-10 Thread Antoine Pitrou
Antoine Pitrou added the comment: > It's painful to have to maintain downstream patches. Supporting this feature > would make Python usable on more platforms. Who volunteers to support it? It's a PITA to maintain the configure script and setup.py, and adding options only makes it more

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

2017-02-10 Thread STINNER Victor
STINNER Victor added the comment: Antoine Pitrou: "That's not really the point. The question is why we should have to maintain this ourselves. It is easy for interested people to maintain their own forks, especially when *removing* stuff." It's painful to have to maintain downstream patches.

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

2016-06-06 Thread Marc-Andre Lemburg
Marc-Andre Lemburg added the comment: Just found this ticket and apparently late to the game... Some comments: It is already possible to selectively build Python C extension modules in the stdlib via editing the Modules/Setup file and this is a lot better to maintain than a long list of

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

2016-06-06 Thread STINNER Victor
STINNER Victor added the comment: Fedora 24 also uses a minimal "system python" to get small cloud image: https://fedoraproject.org/wiki/Changes/System_Python#Benefit_to_Fedora The base package only contains the minimum subset of the stdlib, the full stdlib comes with a second package based on

[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 requires a

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

2016-06-04 Thread Matthias Klose
Matthias Klose added the comment: 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 requires a somehow minimal python). --

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

2016-04-10 Thread Mark Lawrence
Changes by Mark Lawrence : -- nosy: -BreamoreBoy ___ Python tracker ___ ___

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

2016-04-10 Thread Stefan Krah
Stefan Krah added the comment: Normally I hate environment variables, but perhaps in this case PYTHON_DISABLE_MODULES="foo,bar,quux" would be sufficient? Setup.py already has the "disabled_module_list" variable, it's just a matter of setting this variable somehow. This is really something for

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

2015-12-05 Thread Chiu-Hsiang Hsu
Changes by Chiu-Hsiang Hsu : -- nosy: +wdv4758h ___ Python tracker ___ ___

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

2015-04-27 Thread Krasimir
Krasimir added the comment: @Thomas: Thank you for the patches! Adding more flexibility to the build system that allows for cross-compiling and building embeddable/distributable python is definitely something that needs to be done is my opinion. So I definitely find your work very valuable to

[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 have 1/ an

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

2015-03-01 Thread koobs
koobs added the comment: For what it's worth, we've been running with patch 0001 on FreeBSD's Python 3.4 port for 8 months with no issues [1]. It allows downstreams like us to easily customise what modules gets built, and offers substantial flexibility and benefits for various packaging

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

2015-03-01 Thread Mark Lawrence
Mark Lawrence added the comment: @Thomas do you intend following this up as people certainly seem interested? -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue20210 ___

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

2014-03-26 Thread Arfrever Frehtes Taifersar Arahesis
Arfrever Frehtes Taifersar Arahesis added the comment: If it is planned to support BSD make, then partial rewrite of patches will be needed. Example of syntax of GNU make: ifeq (something,something) … endif Example of syntax of FreeBSD make: .if ${variable}==something … .endif --

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

2014-03-26 Thread Arfrever Frehtes Taifersar Arahesis
Arfrever Frehtes Taifersar Arahesis added the comment: According to koobs, building of CPython with FreeBSD make works at least with -j1 (and sporadically fails with higher value). -- ___ Python tracker rep...@bugs.python.org

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

2014-03-26 Thread koobs
koobs added the comment: More precisely: Python 3.3 fails at anything -j1 (switching to gmake makes this go away) Python 3.4 has not failed up to -j8 (with bsd make) -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue20210

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

2014-03-26 Thread STINNER Victor
STINNER Victor added the comment: Antoine Pitrou wrote: I don't really like the idea of complicating our build tools even more. Can't you simply prune the install tree yourself? In the embedded world, the (cross) compilation process is very complex and slow. Being able to disable features

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

2014-03-26 Thread Antoine Pitrou
Antoine Pitrou added the comment: Antoine Pitrou wrote: I don't really like the idea of complicating our build tools even more. Can't you simply prune the install tree yourself? In the embedded world, the (cross) compilation process is very complex and slow. Being able to disable features

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

2014-03-26 Thread Antoine Pitrou
Changes by Antoine Pitrou pit...@free.fr: -- nosy: +loewis ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue20210 ___ ___ Python-bugs-list mailing

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

2014-03-26 Thread Martin v . Löwis
Martin v. Löwis added the comment: I'm +1 on the general idea, but -1 on the implementation strategy used. Instead of coming up with configure options for selected (apparently problematic) modules, I'd like to see a solution that covers *all* extension modules. One approach could be to

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

2014-03-25 Thread Matthias Klose
Matthias Klose 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. I think this one is a valid concern.

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

2014-03-25 Thread koobs
koobs added the comment: These are a good step toward bringing the otherwise neglected Python build system back to the real world in terms of standard functionality, and will among other things, make life an absolute pleasure for downstreams and users alike. User-Serviceable options are

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

2014-03-25 Thread Antoine Pitrou
Antoine Pitrou added the comment: A complicated build system is not a function its feature-set or flexibility, but of the quality of its evolution. Certainly, but that doesn't change the concrete issue: we have a complicated build system that these patches will make more complicated.

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

2014-03-25 Thread Mark Lawrence
Mark Lawrence added the comment: I certainly like the principle. Does this need a wider audience, python-dev maybe? -- nosy: +BreamoreBoy ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue20210

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

2014-03-24 Thread koobs
Changes by koobs koobs.free...@gmail.com: -- nosy: +koobs ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue20210 ___ ___ Python-bugs-list mailing

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

2014-03-24 Thread Antoine Pitrou
Antoine Pitrou added the comment: I don't really like the idea of complicating our build tools even more. Can't you simply prune the install tree yourself? -- nosy: +pitrou ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue20210

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

2014-03-24 Thread Antoine Pitrou
Antoine Pitrou added the comment: For example, a normal Python installation requires OpenSSL, libncurses, and lots of other things. Not really. If some development libraries are not available, Python should still install fine without the corresponding modules. --

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

2014-03-24 Thread Éric Araujo
Éric Araujo added the comment: The main issue with the proposed changes is that it redefines what “the Python standard library” is. Right now, users can mostly expect modules listed in the official Python docs to be available in their installation, regardless of how they got their Python. I

[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-02-17 Thread STINNER Victor
Changes by STINNER Victor victor.stin...@gmail.com: -- nosy: +doko, haypo ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue20210 ___ ___

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

2014-01-09 Thread Thomas Petazzoni
Changes by Thomas Petazzoni thomas.petazz...@free-electrons.com: -- type: - enhancement ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue20210 ___

[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 thomas.petazz...@free-electrons.com: -- keywords: +patch Added file: http://bugs.python.org/file33380/0001-Add-infrastructure-to-disable-the-build-of-certain-e.patch ___ Python tracker rep...@bugs.python.org

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

2014-01-09 Thread Thomas Petazzoni
Changes by Thomas Petazzoni thomas.petazz...@free-electrons.com: Added file: http://bugs.python.org/file33382/0003-Add-an-option-to-disable-pydoc.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue20210

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

2014-01-09 Thread Thomas Petazzoni
Changes by Thomas Petazzoni thomas.petazz...@free-electrons.com: Added file: http://bugs.python.org/file33383/0004-Add-an-option-to-disable-lib2to3.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue20210

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

2014-01-09 Thread Thomas Petazzoni
Changes by Thomas Petazzoni thomas.petazz...@free-electrons.com: Added file: http://bugs.python.org/file33381/0002-Add-an-option-to-disable-installation-of-test-module.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue20210

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

2014-01-09 Thread Thomas Petazzoni
Changes by Thomas Petazzoni thomas.petazz...@free-electrons.com: Added file: http://bugs.python.org/file33384/0005-Add-option-to-disable-the-sqlite3-module.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue20210

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

2014-01-09 Thread Thomas Petazzoni
Changes by Thomas Petazzoni thomas.petazz...@free-electrons.com: Added file: http://bugs.python.org/file33385/0006-Add-an-option-to-disable-the-tk-module.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue20210

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

2014-01-09 Thread Thomas Petazzoni
Changes by Thomas Petazzoni thomas.petazz...@free-electrons.com: Added file: http://bugs.python.org/file33387/0008-Add-an-option-to-disable-expat.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue20210

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

2014-01-09 Thread Thomas Petazzoni
Changes by Thomas Petazzoni thomas.petazz...@free-electrons.com: Added file: http://bugs.python.org/file33386/0007-Add-an-option-to-disable-the-curses-module.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue20210

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

2014-01-09 Thread Thomas Petazzoni
Changes by Thomas Petazzoni thomas.petazz...@free-electrons.com: Added file: http://bugs.python.org/file33389/0010-Add-an-option-to-disable-NIS.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue20210

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

2014-01-09 Thread Thomas Petazzoni
Changes by Thomas Petazzoni thomas.petazz...@free-electrons.com: Added file: http://bugs.python.org/file33391/0012-Add-an-option-to-disable-IDLE.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue20210

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

2014-01-09 Thread Thomas Petazzoni
Changes by Thomas Petazzoni thomas.petazz...@free-electrons.com: Added file: http://bugs.python.org/file33388/0009-Add-an-option-to-disable-CJK-codecs.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue20210

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

2014-01-09 Thread Thomas Petazzoni
Changes by Thomas Petazzoni thomas.petazz...@free-electrons.com: Added file: http://bugs.python.org/file33390/0011-Add-an-option-to-disable-unicodedata.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue20210