diff --git a/distutils/ccompiler.py b/distutils/ccompiler.py index 6b168792..1c52965e 100644 --- a/distutils/ccompiler.py +++ b/distutils/ccompiler.py @@ -6,7 +6,6 @@ import sys import os import re -import warnings from distutils.errors import ( CompileError, @@ -947,16 +946,7 @@ def _make_relative(base): # Chop off the drive no_drive = os.path.splitdrive(base)[1] # If abs, chop off leading / - rel = no_drive[os.path.isabs(no_drive) :] - if rel != base: - msg = ( - f"Absolute path {base!r} is being replaced with a " - f"relative path {rel!r} for outputs. This behavior is " - "deprecated. If this behavior is desired, please " - "comment in pypa/distutils#169." - ) - warnings.warn(msg, DeprecationWarning) - return rel + return no_drive[os.path.isabs(no_drive) :] def shared_object_filename(self, basename, strip_dir=0, output_dir=''): assert output_dir is not None