File tree Expand file tree Collapse file tree 1 file changed +6
-14
lines changed Expand file tree Collapse file tree 1 file changed +6
-14
lines changed Original file line number Diff line number Diff line change 14
14
from pipenv .patched .pip ._internal .commands .install import InstallCommand
15
15
from pipenv .patched .pip ._internal .exceptions import InstallationError
16
16
from pipenv .patched .pip ._internal .models .target_python import TargetPython
17
+ from pipenv .patched .pip ._internal .operations .build .build_tracker import (
18
+ get_build_tracker ,
19
+ )
17
20
from pipenv .patched .pip ._internal .req .constructors import (
18
21
install_req_from_parsed_requirement ,
19
22
)
@@ -76,18 +79,6 @@ def get_package_finder(
76
79
)
77
80
78
81
79
- class BuildTracker :
80
- def __init__ (self , root ):
81
- self .root = root
82
- if not root :
83
- os .environ ["PIP_BUILD_TRACKER" ] = self .root
84
-
85
- def cleanup (self ):
86
- if self .root and "PIP_BUILD_TRACKER" in os .environ :
87
- del os .environ ["PIP_BUILD_TRACKER" ]
88
- # Add any necessary cleanup logic here
89
-
90
-
91
82
class HashCacheMixin :
92
83
"""Caches hashes of PyPI artifacts so we do not need to re-download them.
93
84
@@ -431,8 +422,9 @@ def constraints(self):
431
422
def resolve (self ):
432
423
from pipenv .patched .pip ._internal .utils .temp_dir import TempDirectory
433
424
434
- with global_tempdir_manager (), TempDirectory (globally_managed = True ) as temp_dir :
435
- build_tracker = BuildTracker (temp_dir )
425
+ with global_tempdir_manager (), get_build_tracker () as build_tracker , TempDirectory (
426
+ globally_managed = True
427
+ ) as temp_dir :
436
428
try :
437
429
finder = self .finder ()
438
430
wheel_cache = WheelCache (self .pip_options .cache_dir )
You can’t perform that action at this time.
0 commit comments