# HG changeset patch # User Dan Villiom Podlaski Christiansen # Date 1610369293 -3600 # Node ID 172b294b6d6518272a56042fa088e91181c946d4 # Parent eb01d6d00a5037eb2d95584e7bc7aaca986dc55f setup: don't import distutils prior to checking FORCE_SETUPTOOLS I've seen warnings about importing distutils before setuptools, although I can't reproduce them at the moment. Differential Revision: https://phab.mercurial-scm.org/D9722 diff -r eb01d6d00a50 -r 172b294b6d65 setup.py --- a/setup.py Wed Jan 13 15:42:15 2021 +0530 +++ b/setup.py Mon Jan 11 13:48:13 2021 +0100 @@ -179,7 +179,6 @@ import re import shutil import tempfile -from distutils import log # We have issues with setuptools on some platforms and builders. Until # those are resolved, setuptools is opt-in except for platforms where @@ -199,6 +198,7 @@ from distutils.command.install import install from distutils.command.install_lib import install_lib from distutils.command.install_scripts import install_scripts +from distutils import log from distutils.spawn import spawn, find_executable from distutils import file_util from distutils.errors import (