[issue41282] Deprecate and remove distutils

2021-10-13 Thread Miro Hrončok
Miro Hrončok added the comment: Related: https://bugs.python.org/issue45460 -- nosy: +hroncok ___ Python tracker ___ ___

[issue41282] Deprecate and remove distutils

2021-05-25 Thread Petr Viktorin
Petr Viktorin added the comment: Thank you for doing the hard part, Ned! -- ___ Python tracker ___ ___ Python-bugs-list mailing

[issue41282] Deprecate and remove distutils

2021-05-24 Thread Ned Deily
Ned Deily added the comment: Petr's analysis and PR looked good and the PR is now merged to main and to 3.10 for 3.10.0b2. Thanks, Petr! Downgrading back to normal priority. -- priority: release blocker -> normal ___ Python tracker

[issue41282] Deprecate and remove distutils

2021-05-24 Thread miss-islington
miss-islington added the comment: New changeset 1c454eb2e4eb9e08ee94920c0e1ca7c8896371ec by Miss Islington (bot) in branch '3.10': bpo-41282: Fix broken `make install` (GH-26329) https://github.com/python/cpython/commit/1c454eb2e4eb9e08ee94920c0e1ca7c8896371ec --

[issue41282] Deprecate and remove distutils

2021-05-24 Thread miss-islington
Change by miss-islington : -- nosy: +miss-islington nosy_count: 21.0 -> 22.0 pull_requests: +24928 pull_request: https://github.com/python/cpython/pull/26336 ___ Python tracker

[issue41282] Deprecate and remove distutils

2021-05-24 Thread Petr Viktorin
Change by Petr Viktorin : -- pull_requests: +24921 pull_request: https://github.com/python/cpython/pull/26329 ___ Python tracker ___

[issue41282] Deprecate and remove distutils

2021-05-24 Thread Petr Viktorin
Petr Viktorin added the comment: When building Python, we need two distinct "include" directories: - source .h files - install target for .h files Note that this doesn't matter except when building Python from source. Historically: - source .h files were in the sysconfig scheme under

[issue41282] Deprecate and remove distutils

2021-05-24 Thread Ned Deily
Ned Deily added the comment: Er, make that "GH-26327 attempts to fix the problem ... " but I see from the CI that it causes test_distutils to fail in the simpler case of running the test from the build directory (rather than from an installed location which does pass). I have run out of

[issue41282] Deprecate and remove distutils

2021-05-24 Thread Ned Deily
Ned Deily added the comment: It looks like 341e8a939aca6e9f59ffb0e6daee5888933694ed (GH-24549) incorrectly deleted an important check in sysconfig that is needed for building the cpython standard library on unix-y systems. The chain of events is somewhat complicated but the problem can be

[issue41282] Deprecate and remove distutils

2021-05-24 Thread Ned Deily
Change by Ned Deily : -- pull_requests: +24919 pull_request: https://github.com/python/cpython/pull/26327 ___ Python tracker ___

[issue41282] Deprecate and remove distutils

2021-05-10 Thread STINNER Victor
Change by STINNER Victor : -- nosy: -vstinner ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue41282] Deprecate and remove distutils

2021-05-05 Thread Filipe Laíns
Filipe Laíns added the comment: That always depends on the way distros patch Python, though all the major distros I know will add their schemes to sysconfig, which works what that approach. But yeah, that is what you probably want to be doing :) --

[issue41282] Deprecate and remove distutils

2021-05-05 Thread Ionel Cristian Mărieș
Ionel Cristian Mărieș added the comment: Alright so to get all the package paths, included distro-managed ones would be this right? for scheme in sysconfig.get_scheme_names(): for name in ['purelib', 'platlib']: sysconfig.get_path(name, scheme) --

[issue41282] Deprecate and remove distutils

2021-05-05 Thread Filipe Laíns
Filipe Laíns added the comment: If you are relying on the value of distutils.sysconfig.get_python_lib() as you shown in your system, you probably don't want to. That directory (dist-packages) should be for Debian provided packages only, so moving to sysconfig.get_path() would be a good

[issue41282] Deprecate and remove distutils

2021-05-05 Thread Ionel Cristian Mărieș
Ionel Cristian Mărieș added the comment: That seems fine, tho for some of distros that do lots of python customizations (tried the docker ubuntu image for 18.04.3) it get a bit strange: Python 3.6.9 (default, Jan 26 2021, 15:33:00) [GCC 8.4.0] on linux Type "help", "copyright", "credits" or

[issue41282] Deprecate and remove distutils

2021-05-05 Thread Filipe Laíns
Filipe Laíns added the comment: I believe sysconfig.get_path('purelib') and sysconfig.get_path('platlib') should work for you. > sysconfig.get_path('purelib') /usr/lib/python3.9/site-packages > sysconfig.get_path('platlib') /usr/lib/python3.9/site-packages (here it's the same path, but it is

[issue41282] Deprecate and remove distutils

2021-05-05 Thread Ionel Cristian Mărieș
Ionel Cristian Mărieș added the comment: Hello everyone, How are we supposed to use get_python_lib now (a function that returned the site-packages location)? `from setuptools._distutils.sysconfig import get_python_lib` doesn't really seem like the right solution and the sysconfig stdlib

[issue41282] Deprecate and remove distutils

2021-04-29 Thread Filipe Laíns
Filipe Laíns added the comment: We have discussed this approach a little in a few bug trackers, but I opened https://discuss.python.org/t/mechanism-for-distributors-to-add-site-install-schemes-to-python-installations/8467. -- ___ Python tracker

[issue41282] Deprecate and remove distutils

2021-04-29 Thread Paul Moore
Paul Moore added the comment: I'd suggest also posting it on the Packaging discourse, to get feedback from other distro maintainers. -- ___ Python tracker ___

[issue41282] Deprecate and remove distutils

2021-04-29 Thread Filipe Laíns
Filipe Laíns added the comment: That is reasonable. I have created bpo-43976. -- ___ Python tracker ___ ___ Python-bugs-list

[issue41282] Deprecate and remove distutils

2021-04-29 Thread Éric Araujo
Éric Araujo added the comment: PR 25718 was opened and linked to this ticket. It changes sysconfig to load install schemes from a separate module, so it’s not strictly about removing distutils but adding a new system customization feature. I think it needs its own bug and mailing-list

[issue41282] Deprecate and remove distutils

2021-04-29 Thread Filipe Laíns
Change by Filipe Laíns : -- pull_requests: +24409 pull_request: https://github.com/python/cpython/pull/25718 ___ Python tracker ___

[issue41282] Deprecate and remove distutils

2021-04-24 Thread Christian Heimes
Christian Heimes added the comment: New changeset a460ab3134cd5cf3932c2125aec012851268f0cc by Christian Heimes in branch 'master': bpo-41282: Consistent message and filter warning in setup.py (GH-25571) https://github.com/python/cpython/commit/a460ab3134cd5cf3932c2125aec012851268f0cc

[issue41282] Deprecate and remove distutils

2021-04-24 Thread Christian Heimes
Change by Christian Heimes : -- pull_requests: +24290 pull_request: https://github.com/python/cpython/pull/25571 ___ Python tracker ___

[issue41282] Deprecate and remove distutils

2021-04-23 Thread Petr Viktorin
Petr Viktorin added the comment: New changeset 90d02e5e63e2cb8f66a2c0dd2ea8d7d4f45f4ebf by Lumír 'Frenzy' Balhar in branch 'master': bpo-41282: (PEP 632) Deprecate distutils.sysconfig (partial implementation of the PEP) (GH-23142)

[issue41282] Deprecate and remove distutils

2021-04-16 Thread STINNER Victor
STINNER Victor added the comment: New changeset 69ca32e0d34fe17dd242592b6f8754cda7bae684 by Victor Stinner in branch 'master': bpo-41282: Fix distutils.utils.byte_compile() DeprecationWarning (GH-25406) https://github.com/python/cpython/commit/69ca32e0d34fe17dd242592b6f8754cda7bae684

[issue41282] Deprecate and remove distutils

2021-04-14 Thread Petr Viktorin
Petr Viktorin added the comment: New changeset 341e8a939aca6e9f59ffb0e6daee5888933694ed by Lumír 'Frenzy' Balhar in branch 'master': bpo-41282: (PEP 632) Load install schemes from sysconfig (GH-24549) https://github.com/python/cpython/commit/341e8a939aca6e9f59ffb0e6daee5888933694ed

[issue41282] Deprecate and remove distutils

2021-04-14 Thread STINNER Victor
STINNER Victor added the comment: New changeset d9ba9dee7f267a603394b8d63a7697b08efdf1cb by Victor Stinner in branch 'master': bpo-41282: setup.py ignores distutils DeprecationWarning (GH-25405) https://github.com/python/cpython/commit/d9ba9dee7f267a603394b8d63a7697b08efdf1cb --

[issue41282] Deprecate and remove distutils

2021-04-14 Thread STINNER Victor
Change by STINNER Victor : -- pull_requests: +24139 pull_request: https://github.com/python/cpython/pull/25406 ___ Python tracker ___

[issue41282] Deprecate and remove distutils

2021-04-14 Thread STINNER Victor
Change by STINNER Victor : -- nosy: +vstinner nosy_count: 19.0 -> 20.0 pull_requests: +24138 pull_request: https://github.com/python/cpython/pull/25405 ___ Python tracker ___

[issue41282] Deprecate and remove distutils

2021-03-06 Thread Karthikeyan Singaravelan
Karthikeyan Singaravelan added the comment: I have created below issues where deprecation warning is emitted due to distutils usage in tests. Probably there are other places that need an update to setuptools like setup.py used by make that emits deprecation warning during building cpython.

[issue41282] Deprecate and remove distutils

2021-02-25 Thread Inada Naoki
Change by Inada Naoki : -- nosy: +methane nosy_count: 17.0 -> 18.0 pull_requests: +23442 pull_request: https://github.com/python/cpython/pull/24657 ___ Python tracker ___

[issue41282] Deprecate and remove distutils

2021-02-16 Thread Lumír Balhar
Change by Lumír Balhar : -- pull_requests: +23332 pull_request: https://github.com/python/cpython/pull/24549 ___ Python tracker ___

[issue41282] Deprecate and remove distutils

2021-02-09 Thread Lumír Balhar
Change by Lumír Balhar : -- nosy: +frenzy ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue41282] Deprecate and remove distutils

2021-02-03 Thread Steve Dower
Steve Dower added the comment: Everyone probably noticed, but I closed all the other distutils-tagged issues (as stated in the PEP), so now this is the only one left. Anything new that is opened that relates to distutils either needs to be a release blocker (very unlikely), or closed and

[issue41282] Deprecate and remove distutils

2021-01-30 Thread Chih-Hsuan Yen
Change by Chih-Hsuan Yen : -- nosy: -yan12125 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue41282] Deprecate and remove distutils

2021-01-29 Thread Steve Dower
Steve Dower added the comment: New changeset 62949f697fdefbf0c8bbba7a8354b9376afa35ba by Steve Dower in branch 'master': bpo-41282: Add deprecation warning and docs for distutils (PEP 632) (GH-24355) https://github.com/python/cpython/commit/62949f697fdefbf0c8bbba7a8354b9376afa35ba

[issue41282] Deprecate and remove distutils

2021-01-27 Thread Steve Dower
Steve Dower added the comment: That PR is just to add the import warning and update docs. I want to make sure that's in asap so we don't miss the release. Is there anywhere else in the docs that needs a note? Distutils has been marked as deprecated for years already, so it's really just

[issue41282] Deprecate and remove distutils

2021-01-27 Thread Steve Dower
Change by Steve Dower : -- pull_requests: +23178 pull_request: https://github.com/python/cpython/pull/24355 ___ Python tracker ___

[issue41282] Deprecate and remove distutils

2021-01-22 Thread Arfrever Frehtes Taifersar Arahesis
Change by Arfrever Frehtes Taifersar Arahesis : -- nosy: +Arfrever ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue41282] Deprecate and remove distutils

2021-01-22 Thread Steve Dower
Change by Steve Dower : -- keywords: +patch pull_requests: +23122 stage: -> patch review pull_request: https://github.com/python/cpython/pull/23142 ___ Python tracker ___

[issue41282] Deprecate and remove distutils

2020-10-12 Thread Filipe Laíns
Change by Filipe Laíns : -- nosy: +FFY00 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue41282] Deprecate and remove distutils

2020-09-04 Thread Chih-Hsuan Yen
Chih-Hsuan Yen added the comment: I noticed that a new PEP draft [1] about deprecating distutils is uploaded. The current version [2] proposes to deprecate distutils in 3.10 and 3.11 and remove distutils in 3.12. [1] https://www.python.org/dev/peps/pep-0632/ [2]

[issue41282] Deprecate and remove distutils

2020-07-29 Thread Hugo van Kemenade
Change by Hugo van Kemenade : -- nosy: +hugovk ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue41282] Deprecate and remove distutils

2020-07-17 Thread Terry J. Reedy
Change by Terry J. Reedy : -- versions: -Python 3.9 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue41282] Deprecate and remove distutils

2020-07-14 Thread Paul Ganssle
Paul Ganssle added the comment: Oops, just realized my previous post said `pip install distutils`. I meant to say that `pip install setuptools` will provide the `distutils` module (right now you do `import setuptools; import distutils` and you get the setuptools-provided version; we're

[issue41282] Deprecate and remove distutils

2020-07-14 Thread Paul Ganssle
Paul Ganssle added the comment: > I don't think it's a good idea to replace bad habits from distutils with bad > habits in setuptools._distutils. And this is exactly what you get with > pointing directly to setuptools. These are two different questions. We're not asking people to migrate to

[issue41282] Deprecate and remove distutils

2020-07-14 Thread Christian Heimes
Christian Heimes added the comment: The Windows build system didn't use setu.py even before I upgrade the VS build system to VS 2010. -- ___ Python tracker ___

[issue41282] Deprecate and remove distutils

2020-07-14 Thread Steve Dower
Steve Dower added the comment: The Windows build doesn't depend on distutils at all. We've had dedicated build scripts for each module since before I started contributing. -- ___ Python tracker

[issue41282] Deprecate and remove distutils

2020-07-14 Thread Chih-Hsuan Yen
Change by Chih-Hsuan Yen : -- nosy: +yan12125 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue41282] Deprecate and remove distutils

2020-07-14 Thread Matthias Klose
Matthias Klose added the comment: > A PEP may be a good idea, but I do think the change doesn't have a > particularly large magnitude. Anyone using setuptools or pip has > already been getting setuptools' monkey-patched version of distutils > for ages now, and soon they will be getting

[issue41282] Deprecate and remove distutils

2020-07-14 Thread Christian Heimes
Christian Heimes added the comment: +1 I would like to propose three changes: 1) rename distutils, either _distutils or _buildutils sounds good to me 2) make distutils a build-only dependency and no longer install it with make install and other install targets 3) start to build extensions

[issue41282] Deprecate and remove distutils

2020-07-14 Thread Matthias Klose
Matthias Klose added the comment: Renaming distutils to _buildutils only delays the problem to remove it. But yes, it explicitly makes it explicit that code needs to be changed. I would like to see that neither distutils or _buildutils is installed by default, and only is available

[issue41282] Deprecate and remove distutils

2020-07-14 Thread Matthias Klose
Matthias Klose added the comment: > It's too late to add a new deprecation in the Python 3.9 cycle Please can we add a note in 3.9, that it will be deprecated in 3.10? -- nosy: +doko ___ Python tracker

[issue41282] Deprecate and remove distutils

2020-07-13 Thread Brett Cannon
Brett Cannon added the comment: FYI PEP 387 (which I expect will be accepted once I catch up from vacation) specified deprecations are to be public for two releases before removal or approval from the SC for a shorter cycle. So if distutils is deprecated in 3.10 then it can be removed in

[issue41282] Deprecate and remove distutils

2020-07-13 Thread Karthikeyan Singaravelan
Change by Karthikeyan Singaravelan : -- nosy: +p-ganssle ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue41282] Deprecate and remove distutils

2020-07-13 Thread Donald Stufft
Donald Stufft added the comment: Maybe it would make sense to remove distutils from the name completely, _buildutils or something. Dunno, seems like it might be reasonable just to further separate it from the concept of "distutils" the public library. --

[issue41282] Deprecate and remove distutils

2020-07-13 Thread Steve Dower
Steve Dower added the comment: Deprecating in 3.10 is fine - everyone who needs to know about it releases whenever they like anyway, so we just need to make _some_ announcement. I'd propose either moving it to Tools/distutils, or renaming it to _distutils. The point is that we're saying

[issue41282] Deprecate and remove distutils

2020-07-13 Thread Paul Ganssle
Paul Ganssle added the comment: > So what is the plan to continue to support building cpython itself which > depends on Distutils? Currently the build bootstraps itself without the aid > of an existing Python interpreter instance. There would also be major impacts > across the whole cpython

[issue41282] Deprecate and remove distutils

2020-07-13 Thread Łukasz Langa
Łukasz Langa added the comment: It's too late to add a new deprecation in the Python 3.9 cycle. Next week is the *last* beta release. Most beta testing already took place. -- ___ Python tracker

[issue41282] Deprecate and remove distutils

2020-07-13 Thread Ned Deily
Ned Deily added the comment: So what is the plan to continue to support building cpython itself which depends on Distutils? Currently the build bootstraps itself without the aid of an existing Python interpreter instance. There would also be major impacts across the whole cpython

[issue41282] Deprecate and remove distutils

2020-07-13 Thread Ned Deily
Change by Ned Deily : -- nosy: +brett.cannon ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue41282] Deprecate and remove distutils

2020-07-12 Thread Jason R. Coombs
Change by Jason R. Coombs : -- nosy: +steve.dower ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue41282] Deprecate and remove distutils

2020-07-12 Thread Jason R. Coombs
Jason R. Coombs added the comment: Łukasz, would it be possible to add the deprecation warning and documented deprecation to Python 3.9? -- nosy: +lukasz.langa ___ Python tracker

[issue41282] Deprecate and remove distutils

2020-07-12 Thread Jason R. Coombs
Change by Jason R. Coombs : -- nosy: +ncoghlan, paul.moore ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue41282] Deprecate and remove distutils

2020-07-12 Thread Jason R. Coombs
New submission from Jason R. Coombs : Setuptools has adopted distutils as outlined in [pypa/packaging-problems#127](https://github.com/pypa/packaging-problems/issues/127). Although there are some straggling issues, the current release of Setuptools fully obviates distutils if a certain