HEX
Server: Apache/2.4.46 (Win64) OpenSSL/1.1.1j PHP/8.4.25
System: Windows NT DESKTOP-4TAV2RJ 10.0 build 19045 (Windows 10) AMD64
User: fred (0)
PHP: 8.4.25
Disabled: NONE
Upload Files
File: C:/Users/fred/miniconda3/Lib/site-packages/conda_env/pip_util.py
# Copyright (C) 2012 Anaconda, Inc
# SPDX-License-Identifier: BSD-3-Clause
"""DEPRECATED: Use `conda.env.pip_util` instead.

Environment object describing the conda environment.yaml file.
"""

import re

from conda.deprecations import deprecated
from conda.env.pip_util import (  # noqa: F401
    get_pip_installed_packages,
    pip_subprocess,
)
from conda.exceptions import CondaEnvException  # noqa: F401

deprecated.module("24.9", "25.3", addendum="Use `conda.env.pip_util` instead.")


# canonicalize_{regex,name} inherited from packaging/utils.py
# Used under BSD license
_canonicalize_regex = re.compile(r"[-_.]+")