@@ -131,7 +131,7 @@ def __init__(
131
131
# Temporary build location
132
132
self ._temp_build_dir = None # type: Optional[TempDirectory]
133
133
# Used to store the global directory where the _temp_build_dir should
134
- # have been created. Cf _correct_build_location method.
134
+ # have been created. Cf move_to_correct_build_directory method.
135
135
self ._ideal_build_dir = None # type: Optional[str]
136
136
# Set to True after successful installation
137
137
self .install_succeeded = None # type: Optional[bool]
@@ -332,8 +332,8 @@ def ensure_build_location(self, build_dir):
332
332
if self .req is None :
333
333
# for requirement via a path to a directory: the name of the
334
334
# package is not available yet so we create a temp directory
335
- # Once run_egg_info will have run, we'll be able
336
- # to fix it via _correct_build_location
335
+ # Once run_egg_info will have run, we'll be able to fix it via
336
+ # move_to_correct_build_directory().
337
337
# Some systems have /tmp as a symlink which confuses custom
338
338
# builds (such as numpy). Thus, we ensure that the real path
339
339
# is returned.
@@ -353,16 +353,16 @@ def ensure_build_location(self, build_dir):
353
353
_make_build_dir (build_dir )
354
354
return os .path .join (build_dir , name )
355
355
356
- def _correct_build_location (self ):
356
+ def move_to_correct_build_directory (self ):
357
357
# type: () -> None
358
- """Move self._temp_build_dir to self._ideal_build_dir/self.req.name
358
+ """Move self._temp_build_dir to " self._ideal_build_dir/self.req.name"
359
359
360
360
For some requirements (e.g. a path to a directory), the name of the
361
361
package is not available until we run egg_info, so the build_location
362
362
will return a temporary directory and store the _ideal_build_dir.
363
363
364
- This is only called by self.run_egg_info to fix the temporary build
365
- directory .
364
+ This is only called to " fix" the build directory after generating
365
+ metadata .
366
366
"""
367
367
if self .source_dir is not None :
368
368
return
@@ -583,7 +583,7 @@ def prepare_metadata(self):
583
583
self .metadata ["Version" ],
584
584
])
585
585
)
586
- self ._correct_build_location ()
586
+ self .move_to_correct_build_directory ()
587
587
else :
588
588
metadata_name = canonicalize_name (self .metadata ["Name" ])
589
589
if canonicalize_name (self .req .name ) != metadata_name :
0 commit comments