Skip to content

Restore pbr compatibility #4980

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 6 commits into from
May 4, 2025
Merged
Changes from 1 commit
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
Prev Previous commit
Next Next commit
Render the attributes dynamically.
  • Loading branch information
jaraco committed May 4, 2025
commit 30c00380093b1a7ff5693f98d06ab4fa4f8923cf
14 changes: 12 additions & 2 deletions setuptools/command/easy_install.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import os
import sys
import types

from setuptools import Command

Expand All @@ -10,5 +11,14 @@ class easy_install(Command):
"""Stubbed command for temporary pbr compatibility."""


ScriptWriter = _scripts.ScriptWriter
sys_executable = os.environ.get("__PYVENV_LAUNCHER__", os.path.normpath(sys.executable))
def __getattr__(name):
attr = getattr(
types.SimpleNamespace(
ScriptWriter=_scripts.ScriptWriter,
sys_executable=os.environ.get(
"__PYVENV_LAUNCHER__", os.path.normpath(sys.executable)
),
),
name,
)
return attr