diff --git a/conda_build/jinja_context.py b/conda_build/jinja_context.py index a8e98c4116..bd0cddd527 100644 --- a/conda_build/jinja_context.py +++ b/conda_build/jinja_context.py @@ -9,10 +9,10 @@ import pathlib import re import time +import warnings from functools import partial from io import StringIO, TextIOBase from typing import TYPE_CHECKING -from warnings import warn import jinja2 import yaml @@ -207,7 +207,7 @@ def load_setuptools( recipe_dir=None, permit_undefined_jinja=True, ): - warn( + warnings.warn( "conda_build.jinja_context.load_setuptools is pending deprecation in a future release. " "Use conda_build.jinja_context.load_setup_py_data instead.", PendingDeprecationWarning,