diff --git a/news/4642.bugfix.rst b/news/4642.bugfix.rst new file mode 100644 index 0000000000..7a102c7fec --- /dev/null +++ b/news/4642.bugfix.rst @@ -0,0 +1 @@ +Fix bug preventing use of pipenv lock --pre diff --git a/pipenv/utils.py b/pipenv/utils.py index abf7b13af0..61e5f683c7 100644 --- a/pipenv/utils.py +++ b/pipenv/utils.py @@ -705,6 +705,8 @@ def prepare_pip_args(self, use_pep517=False, build_isolation=True): pip_args.append("--no-use-pep517") if build_isolation is False: pip_args.append("--no-build-isolation") + if self.pre: + pip_args.append("--pre") pip_args.extend(["--cache-dir", environments.PIPENV_CACHE_DIR]) return pip_args