#31808: Django causes latest setuptools to issue "UserWarning: Distutils was
imported before Setuptools."
-------------------------------+--------------------------------------
Reporter: Luc Saffre | Owner: nobody
Type: Uncategorized | Status: new
Component: Uncategorized | Version: 3.0
Severity: Normal | Resolution:
Keywords: | Triage Stage: Unreviewed
Has patch: 0 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 0 | UI/UX: 0
-------------------------------+--------------------------------------
Comment (by Luc Saffre):
Here is how to filter the warning:
{{{
import warnings
warnings.filterwarnings(
"ignore", "Distutils was imported before Setuptools. This usage is
discouraged and may exhibit undesirable behaviors or errors. Please use
Setuptools' objects directly or at least import Setuptools first.",
UserWarning, "setuptools.distutils_patch")
}}}
But that code must run before importing django in every manage.py file, so
it is not easy to disable in my test suite. Another workaround is to
install "setuptools<49.2".
--
Ticket URL: <https://code.djangoproject.com/ticket/31808#comment:1>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.
--
You received this message because you are subscribed to the Google Groups
"Django updates" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/django-updates/065.52661108d553ba797c025122b972d7ab%40djangoproject.com.