Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

distutils is deprecated #29

Closed
daniel-mohr opened this issue Apr 19, 2023 · 0 comments
Closed

distutils is deprecated #29

daniel-mohr opened this issue Apr 19, 2023 · 0 comments

Comments

@daniel-mohr
Copy link
Contributor

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 and DistutilsArgError 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 for distutils.fancy_getopt.

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.

daniel-mohr added a commit that referenced this issue Apr 19, 2023
distutils -> setuptools (closes #29)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant