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
PEP 632 – Deprecate distutils module mentioned: 'There is not yet a reference implementation for the removal of distutils from the standard library, nor is there an implementation for CPython’s native module builds without relying on the standard library copy of distutils.'
And setuptools documentation: Prefer Setuptools declares: 'Please notice errors related to the command line usage of setup.py, such as DistutilsArgError, are intentionally not exposed by setuptools, since this is considered a deprecated practice.'
But argparse.ArgumentError instead of distutils.core.DistutilsArgError is not applicable since argparse.ArgumentError requires as first argument an argument instance.
So we could only raise a general Exception.
The text was updated successfully, but these errors were encountered:
PEP 632 – Deprecate distutils module set distutils to be deprecated.
But fuse_git_bare_fs uses distutils.core.DistutilsArgError and this
DistutilsArgError
is not ported to setuptools: 'DistutilsGetoptError
andDistutilsArgError
are left out, since they are related to the deprecated practice of running the setup.py script directly (I think).'PEP 632 – Deprecate distutils module mentioned: 'There is not yet a reference implementation for the removal of distutils from the standard library, nor is there an implementation for CPython’s native module builds without relying on the standard library copy of distutils.'
And setuptools documentation: Prefer Setuptools declares: 'Please notice errors related to the command line usage of setup.py, such as DistutilsArgError, are intentionally not exposed by setuptools, since this is considered a deprecated practice.'
PEP 632 – Deprecate distutils module: Migration Advice mentioned
argparse
as a replacement fordistutils.fancy_getopt
.But
argparse.ArgumentError
instead ofdistutils.core.DistutilsArgError
is not applicable sinceargparse.ArgumentError
requires as first argument an argument instance.So we could only raise a general
Exception
.The text was updated successfully, but these errors were encountered: