-
-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
[Docs] Replacement for distutils.filelist
?
#4071
Comments
Hi @Avasam thank you very much for working on this migration. Is there any chance you could replace the usages of I had a look on your The other usage in What do you think? Personally, I would like to avoid the extra work associated with maintaining something like a public Footnotes
|
Thank you for your response. Indeed pywin32 doesn't do anything too complicated with filelist and it can all be replaced with pathlib and other similar API. Before l started on that path, I wanted to inquire on the recommended migration path. And make sure that filelist is part of the API that isn't going to be re-exposed by setuptools. The logic probably won't end up being a perfect 1:1, but I think re-implementing with your suggestions, with proper testing, is the way to go. Better than just copying FileList's code directly. |
The following doc was useful: https://docs.python.org/3/library/pathlib.html#correspondence-to-tools-in-the-os-module
You can close this issue if you don't think there is a need to document FileList migration paths. |
Summary
I'm looking into progressively migrating
distutil
usage in pywin32 (mhammond/pywin32#2119), wheredistutils.filelist.FileList
is used.https://setuptools.pypa.io/en/latest/deprecated/distutils-legacy.html#prefer-setuptools and https://peps.python.org/pep-0632/#migration-advice don't mention
distutils.filelist
at all. I searched the documentation forfilelist
and could not find any deprecation or migration mention.OS / Environment
Windows 10
Python 3.9
setuptools 68.2.2
Additional Information
Document a migration path for
distutils.filelist
Code of Conduct
The text was updated successfully, but these errors were encountered: