Commit 5db75ca6 authored by Florent Xicluna's avatar Florent Xicluna

No more deprecation warnings for distutils.sysconfig, following r78666.

But when the "dl" module is available, it gives a py3k deprecation warning.
parent 32c211ba
...@@ -358,6 +358,9 @@ class BuildExtTestCase(support.TempdirManager, ...@@ -358,6 +358,9 @@ class BuildExtTestCase(support.TempdirManager,
import distutils.core, distutils.extension, distutils.command.build_ext import distutils.core, distutils.extension, distutils.command.build_ext
saved_ext = distutils.extension.Extension saved_ext = distutils.extension.Extension
try: try:
# on some platforms, it loads the deprecated "dl" module
test_support.import_module('setuptools_build_ext', deprecated=True)
# theses import patch Distutils' Extension class # theses import patch Distutils' Extension class
from setuptools_build_ext import build_ext as setuptools_build_ext from setuptools_build_ext import build_ext as setuptools_build_ext
from setuptools_extension import Extension from setuptools_extension import Extension
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment