Skip to content

Commit

Permalink
Merge pull request #5863 from kalebmckale/cache-dedupe-sources
Browse files Browse the repository at this point in the history
Caching properties to deduplicate sources
  • Loading branch information
matteius committed Aug 26, 2023
2 parents a3b197e + 8716271 commit ea79c0d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
1 change: 0 additions & 1 deletion pipenv/resolver.py
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,6 @@ def get_parser():
action="store",
default=None,
)
parser.add_argument("--debug", action="store_true", default=False)
parser.add_argument("--system", action="store_true", default=False)
parser.add_argument("--parse-only", action="store_true", default=False)
parser.add_argument(
Expand Down
4 changes: 2 additions & 2 deletions pipenv/utils/resolver.py
Original file line number Diff line number Diff line change
Expand Up @@ -266,7 +266,7 @@ def prepare_pip_args(self, use_pep517=None, build_isolation=True):
pip_args.extend(["--cache-dir", self.project.s.PIPENV_CACHE_DIR])
return pip_args

@property
@cached_property
def pip_args(self):
use_pep517 = environments.get_from_env("USE_PEP517", prefix="PIP")
build_isolation = environments.get_from_env("BUILD_ISOLATION", prefix="PIP")
Expand Down Expand Up @@ -298,7 +298,7 @@ def default_constraint_file(self):
)
return default_constraint_filename

@property
@cached_property
def pip_options(self):
pip_options, _ = self.pip_command.parser.parse_args(self.pip_args)
pip_options.cache_dir = self.project.s.PIPENV_CACHE_DIR
Expand Down

0 comments on commit ea79c0d

Please sign in to comment.