You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Why?
I ran into "No module named 'distutils.util'" while configuring Poetry to pull private packages. My environment is: Poetry 1.1.6 on a debian:buster docker image with python 3.8.10. From my quick research, it seems like distutils is not included in the newer versions of debian. Poetry uses ^20.4 version of the Packaging library, which uses Distutils for tagging. Distutils has been replaced with sysconfig in Packaging version 21.0 ( issue 396).
As distutils is being deprecated with python 3.12 (PEP 632), I think the Packaging library should be bumped to major version 21.
Workaround:
For now, I am installing distutils explicitly on my debian image apt-get install python3-distutils
The text was updated successfully, but these errors were encountered:
Issue
Bump Packaging library to major version 21
Why?
I ran into "No module named 'distutils.util'" while configuring Poetry to pull private packages. My environment is: Poetry 1.1.6 on a debian:buster docker image with python 3.8.10. From my quick research, it seems like distutils is not included in the newer versions of debian. Poetry uses ^20.4 version of the Packaging library, which uses Distutils for tagging. Distutils has been replaced with sysconfig in Packaging version 21.0 ( issue 396).
As distutils is being deprecated with python 3.12 (PEP 632), I think the Packaging library should be bumped to major version 21.
Workaround:
For now, I am installing distutils explicitly on my debian image
apt-get install python3-distutils
The text was updated successfully, but these errors were encountered: