Skip to content

Commit

Permalink
Revert "Shot at fixing failing test"
Browse files Browse the repository at this point in the history
This reverts commit eed37bc.
  • Loading branch information
matteius committed Jun 30, 2023
1 parent 5a56709 commit 97c2429
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion pipenv/project.py
Original file line number Diff line number Diff line change
Expand Up @@ -724,7 +724,10 @@ def create_pipfile(self, python=None):
# Default requires.
required_python = python
if not python:
required_python = self.python
if self.virtualenv_location:
required_python = self.which("python", self.virtualenv_location)
else:
required_python = self.which("python")
version = python_version(required_python) or self.s.PIPENV_DEFAULT_PYTHON_VERSION
if version:
data["requires"] = {"python_version": ".".join(version.split(".")[:2])}
Expand Down

0 comments on commit 97c2429

Please sign in to comment.