-
Notifications
You must be signed in to change notification settings - Fork 100
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
chore(distutils): remove distutils usages #336
Conversation
c9c83a5
to
0400105
Compare
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for working on this! Some initial suggestions which may help out...
setuptools_rust/setuptools_ext.py
Outdated
from distutils import log | ||
from distutils.command.clean import clean | ||
import logging | ||
from setuptools.command.clean import clean |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is only used for type checking, so I think you could leave it as distutils and put it under an if TYPE_CHECKING
guard?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It seems to be used not only for typing as it breaks the CI, trying to use vendorized version of distutils
in the meantime.
0400105
to
7fd029d
Compare
7fd029d
to
e46b7c3
Compare
For now I've rebased and removed the import of |
Did not have time to keep this work going further, sorry for that 👍 |
As allowed by PyO3/setuptools-rust#336 (From OE-Core rev: b400ef172c3e10828391957570cdd57234f1590e) Signed-off-by: Alexander Kanavin <alex@linutronix.de> Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
As allowed by PyO3/setuptools-rust#336 (From OE-Core rev: b400ef172c3e10828391957570cdd57234f1590e) Signed-off-by: Alexander Kanavin <alex@linutronix.de> Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
As allowed by PyO3/setuptools-rust#336 (From OE-Core rev: b400ef172c3e10828391957570cdd57234f1590e) Signed-off-by: Alexander Kanavin <alex@linutronix.de> Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
As allowed by PyO3/setuptools-rust#336 (From OE-Core rev: 550dce75d0a9ff1196f62970b726b67b4eadd9c5) Signed-off-by: Alexander Kanavin <alex@linutronix.de> Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
As allowed by PyO3/setuptools-rust#336 (From OE-Core rev: 550dce75d0a9ff1196f62970b726b67b4eadd9c5) Signed-off-by: Alexander Kanavin <alex@linutronix.de> Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
As allowed by PyO3/setuptools-rust#336 (From OE-Core rev: 768c884d34e60033ba36bb35122a1904aee9987d) Signed-off-by: Alexander Kanavin <alex@linutronix.de> Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
As allowed by PyO3/setuptools-rust#336 (From OE-Core rev: f80986b33bff2b66719d7754d65412d925dc37e3) Signed-off-by: Alexander Kanavin <alex@linutronix.de> Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
As allowed by PyO3/setuptools-rust#336 (From OE-Core rev: ca452dd6b1b6799cf70dac93f7fac0746d8c43bc) Signed-off-by: Alexander Kanavin <alex@linutronix.de> Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
As allowed by PyO3/setuptools-rust#336 Signed-off-by: Alexander Kanavin <alex@linutronix.de> Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
As allowed by PyO3/setuptools-rust#336 (From OE-Core rev: ca452dd6b1b6799cf70dac93f7fac0746d8c43bc) Signed-off-by: Alexander Kanavin <alex@linutronix.de> Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
As allowed by PyO3/setuptools-rust#336 (From OE-Core rev: ca452dd6b1b6799cf70dac93f7fac0746d8c43bc) Signed-off-by: Alexander Kanavin <alex@linutronix.de> Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
As allowed by PyO3/setuptools-rust#336 (From OE-Core rev: ca452dd6b1b6799cf70dac93f7fac0746d8c43bc) Signed-off-by: Alexander Kanavin <alex@linutronix.de> Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
As allowed by PyO3/setuptools-rust#336 (From OE-Core rev: fd3069559579e72cc20fad13f758621832326e1c) Signed-off-by: Alexander Kanavin <alex@linutronix.de> Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
As allowed by PyO3/setuptools-rust#336 (From OE-Core rev: fd3069559579e72cc20fad13f758621832326e1c) Signed-off-by: Alexander Kanavin <alex@linutronix.de> Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
As allowed by PyO3/setuptools-rust#336 (From OE-Core rev: ca452dd6b1b6799cf70dac93f7fac0746d8c43bc) Signed-off-by: Alexander Kanavin <alex@linutronix.de> Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
As allowed by PyO3/setuptools-rust#336 (From OE-Core rev: ca452dd6b1b6799cf70dac93f7fac0746d8c43bc) Signed-off-by: Alexander Kanavin <alex@linutronix.de> Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
As allowed by PyO3/setuptools-rust#336 (From OE-Core rev: ca452dd6b1b6799cf70dac93f7fac0746d8c43bc) Signed-off-by: Alexander Kanavin <alex@linutronix.de> Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
As allowed by PyO3/setuptools-rust#336 (From OE-Core rev: fd3069559579e72cc20fad13f758621832326e1c) Signed-off-by: Alexander Kanavin <alex@linutronix.de> Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
As allowed by PyO3/setuptools-rust#336 (From OE-Core rev: ca452dd6b1b6799cf70dac93f7fac0746d8c43bc) Signed-off-by: Alexander Kanavin <alex@linutronix.de> Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
As allowed by PyO3/setuptools-rust#336 (From OE-Core rev: ca452dd6b1b6799cf70dac93f7fac0746d8c43bc) Signed-off-by: Alexander Kanavin <alex@linutronix.de> Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
As allowed by PyO3/setuptools-rust#336 (From OE-Core rev: ca452dd6b1b6799cf70dac93f7fac0746d8c43bc) Signed-off-by: Alexander Kanavin <alex@linutronix.de> Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
As allowed by PyO3/setuptools-rust#336 (From OE-Core rev: ca452dd6b1b6799cf70dac93f7fac0746d8c43bc) Signed-off-by: Alexander Kanavin <alex@linutronix.de> Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Description
distutils
module usage is deprecated since Python 3.10 and will be removed in Python 3.12, this PR gets rid of remaining usages of this module.Replacements are taken from https://peps.python.org/pep-0632/#migration-advice and https://setuptools.pypa.io/en/latest/deprecated/distutils-legacy.html.
How this has been tested ?
To be checked