myint / yolk

Command-line tool for querying PyPI and Python packages installed on your system (with Python 3 support)
https://pypi.python.org/pypi/yolk3k
BSD 3-Clause "New" or "Revised" License
66 stars 12 forks source link

UserWarning: Distutils was imported before Setuptools #23

Open lhoenig opened 4 years ago

lhoenig commented 4 years ago

Since setuptools 49.2.0, a warning is printed whenever I run yolk:

/usr/lib/python3.8/site-packages/setuptools/distutils_patch.py:25: 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.

See https://setuptools.readthedocs.io/en/latest/history.html#v49-2-0 and https://github.com/pypa/setuptools/issues/2230

Maybe the imports can be reordered to get rid of this visual disturbance? Thanks for yolk!