|
13 | 13 | from pip._internal.operations.build.wheel import build_wheel_pep517
|
14 | 14 | from pip._internal.operations.build.wheel_legacy import build_wheel_legacy
|
15 | 15 | from pip._internal.utils.logging import indent_log
|
16 |
| -from pip._internal.utils.marker_files import has_delete_marker_file |
17 | 16 | from pip._internal.utils.misc import ensure_dir, hash_file
|
18 | 17 | from pip._internal.utils.setuptools_build import make_setuptools_clean_args
|
19 | 18 | from pip._internal.utils.subprocess import call_subprocess
|
20 | 19 | from pip._internal.utils.temp_dir import TempDirectory
|
21 | 20 | from pip._internal.utils.typing import MYPY_CHECK_RUNNING
|
22 |
| -from pip._internal.utils.unpacking import unpack_file |
23 | 21 | from pip._internal.utils.urls import path_to_url
|
24 | 22 | from pip._internal.vcs import vcs
|
25 | 23 |
|
@@ -312,27 +310,6 @@ def build(
|
312 | 310 | req.link = Link(path_to_url(wheel_file))
|
313 | 311 | req.local_file_path = req.link.file_path
|
314 | 312 | assert req.link.is_wheel
|
315 |
| - if should_unpack: |
316 |
| - # XXX: This is mildly duplicative with prepare_files, |
317 |
| - # but not close enough to pull out to a single common |
318 |
| - # method. |
319 |
| - # The code below assumes temporary source dirs - |
320 |
| - # prevent it doing bad things. |
321 |
| - if ( |
322 |
| - req.source_dir and |
323 |
| - not has_delete_marker_file(req.source_dir) |
324 |
| - ): |
325 |
| - raise AssertionError( |
326 |
| - "bad source dir - missing marker") |
327 |
| - # Delete the source we built the wheel from |
328 |
| - req.remove_temporary_source() |
329 |
| - # set the build directory again - name is known from |
330 |
| - # the work prepare_files did. |
331 |
| - req.source_dir = req.ensure_build_location( |
332 |
| - self.preparer.build_dir |
333 |
| - ) |
334 |
| - # extract the wheel into the dir |
335 |
| - unpack_file(req.link.file_path, req.source_dir) |
336 | 313 | build_successes.append(req)
|
337 | 314 | else:
|
338 | 315 | build_failures.append(req)
|
|
0 commit comments