Skip to content

Commit c8afd55

Browse files
committed
Remove unnecessary write_delete_marker_file
InstallRequirement only checks for a delete marker file in source_dir. Since the result of ensure_build_location is set to source_dir (in ensure_has_source_dir), and ensure_build_location returns a subdirectory of the build_directory to which we write the delete marker file, then this delete marker file is never used.
1 parent 1d17df6 commit c8afd55

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

src/pip/_internal/req/req_install.py

-1
Original file line numberDiff line numberDiff line change
@@ -371,7 +371,6 @@ def ensure_build_location(self, build_dir):
371371
if not os.path.exists(build_dir):
372372
logger.debug('Creating directory %s', build_dir)
373373
os.makedirs(build_dir)
374-
write_delete_marker_file(build_dir)
375374
return os.path.join(build_dir, name)
376375

377376
def _set_requirement(self):

0 commit comments

Comments
 (0)