Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 30c0038

Browse filesBrowse files
committed
Render the attributes dynamically.
1 parent d622935 commit 30c0038
Copy full SHA for 30c0038

File tree

Expand file treeCollapse file tree

1 file changed

+12
-2
lines changed
Filter options
Expand file treeCollapse file tree

1 file changed

+12
-2
lines changed

‎setuptools/command/easy_install.py

Copy file name to clipboardExpand all lines: setuptools/command/easy_install.py
+12-2Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
import os
22
import sys
3+
import types
34

45
from setuptools import Command
56

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

1213

13-
ScriptWriter = _scripts.ScriptWriter
14-
sys_executable = os.environ.get("__PYVENV_LAUNCHER__", os.path.normpath(sys.executable))
14+
def __getattr__(name):
15+
attr = getattr(
16+
types.SimpleNamespace(
17+
ScriptWriter=_scripts.ScriptWriter,
18+
sys_executable=os.environ.get(
19+
"__PYVENV_LAUNCHER__", os.path.normpath(sys.executable)
20+
),
21+
),
22+
name,
23+
)
24+
return attr

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.