@@ -30,7 +30,7 @@ def _get_path_extensions():
30
30
_CONF_VAR_RE = re .compile (r"\{\w+\}" )
31
31
32
32
33
- class PythonInfo : # noqa: PLR0904
33
+ class PythonInfo :
34
34
"""Contains information for a Python interpreter."""
35
35
36
36
def __init__ (self ) -> None : # noqa: PLR0915
@@ -135,7 +135,6 @@ def abs_path(v):
135
135
self .system_stdlib = self .sysconfig_path ("stdlib" , confs )
136
136
self .system_stdlib_platform = self .sysconfig_path ("platstdlib" , confs )
137
137
self .max_size = getattr (sys , "maxsize" , getattr (sys , "maxint" , None ))
138
- self ._creators = None
139
138
140
139
@staticmethod
141
140
def _get_tcl_tk_libs ():
@@ -311,13 +310,6 @@ def sysconfig_path(self, key, config_var=None, sep=os.sep):
311
310
config_var = base
312
311
return pattern .format (** config_var ).replace ("/" , sep )
313
312
314
- def creators (self , refresh = False ): # noqa: FBT002
315
- if self ._creators is None or refresh is True :
316
- from virtualenv .run .plugin .creators import CreatorSelector # noqa: PLC0415
317
-
318
- self ._creators = CreatorSelector .for_interpreter (self )
319
- return self ._creators
320
-
321
313
@property
322
314
def system_include (self ):
323
315
path = self .sysconfig_path (
@@ -467,8 +459,7 @@ def _to_json(self):
467
459
return json .dumps (self ._to_dict (), indent = 2 )
468
460
469
461
def _to_dict (self ):
470
- data = {var : (getattr (self , var ) if var != "_creators" else None ) for var in vars (self )}
471
-
462
+ data = {var : getattr (self , var ) for var in vars (self )}
472
463
data ["version_info" ] = data ["version_info" ]._asdict () # namedtuple to dictionary
473
464
return data
474
465
0 commit comments