summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJason R. Coombs <jaraco@jaraco.com>2022-08-21 13:28:38 -0400
committerJason R. Coombs <jaraco@jaraco.com>2022-08-21 13:54:50 -0400
commit66c7e69716bed08f5404ac401da508c97b16aa8a (patch)
tree4e637b6938012a1f02a9d308bc32581fb6a1759f
parentea04533962eb5ac86630b9cc65e4a5d5c6cfef55 (diff)
downloadpython-setuptools-git-66c7e69716bed08f5404ac401da508c97b16aa8a.tar.gz
In _make_relative, remove deprecation warning. Ref pypa/distutils#169.
-rw-r--r--distutils/ccompiler.py12
1 files changed, 1 insertions, 11 deletions
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 @@ for the Distutils compiler abstraction model."""
import sys
import os
import re
-import warnings
from distutils.errors import (
CompileError,
@@ -947,16 +946,7 @@ int main (int argc, char **argv) {
# 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