Skip to content

CI: warning from setuptools (Numpy Dev Build Failures) #35252

Closed
@alimcmaster1

Description

@alimcmaster1
   def warn_distutils_present():
        if 'distutils' not in sys.modules:
            return
        if is_pypy and sys.version_info < (3, 7):
            # PyPy for 3.6 unconditionally imports distutils, so bypass the warning
            # https://foss.heptapod.net/pypy/pypy/-/blob/be829135bc0d758997b3566062999ee8b23872b4/lib-python/3/site.py#L250
            return
        warnings.warn(
>           "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.")
E       UserWarning: 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.

e.g : https://dev.azure.com/pandas-dev/pandas/_build/results?buildId=39110&view=logs&j=3a03f79d-0b41-5610-1aa4-b4a014d0bc70&t=4d05ed0e-1ed3-5bff-dd63-1e957f2766a9&l=195

Metadata

Metadata

Assignees

No one assigned

    Labels

    CIContinuous IntegrationClosing CandidateMay be closeable, needs more eyeballs

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions