Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,6 @@ def augment_package( # noqa: D102
desc.dependencies)

def getter(env):
nonlocal setup_py
return get_setup_information(setup_py, env=env)

desc.metadata['get_python_setup_options'] = getter
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,9 @@
with suppress(ImportError):
# needed before importing distutils
# to avoid warning introduced in setuptools 49.2.0
import setuptools
import distutils.core
import os
import setuptools # noqa: I100
import distutils.core # noqa: I100, I201, I202
import os # noqa: I100, I201, I202
from pathlib import Path
import runpy
import subprocess
Expand Down Expand Up @@ -238,7 +238,6 @@ def get_setup_information(setup_py, *, env=None):
:return: dictionary of data describing the package.
:raise: RuntimeError if the setup script encountered an error
"""
global _setup_information_cache
if env is None:
env = os.environ
if 'DISTUTILS_DEBUG' in env:
Expand Down
Loading