Skip to content

Commit

Permalink
Make preference check more general
Browse files Browse the repository at this point in the history
  • Loading branch information
elikoga committed Jul 23, 2024
1 parent 9511f72 commit 889fd94
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions src/appenv.py
Original file line number Diff line number Diff line change
Expand Up @@ -518,9 +518,10 @@ def update_lockfile(self, freeze_args=None, remaining=None):
ensure_minimal_python()
preferences = parse_preferences()
python312_mixed_setuptools_workaround = False
if preferences is not None and '3.12' in preferences and any(
f'3.{x}' in preferences for x in range(4, 12)):
python312_mixed_setuptools_workaround = True
if preferences is not None:
if any(f'3.{x}' in preferences for x in range(4, 12)):
if any(f'3.{x}' in preferences for x in range(12, 20)):
python312_mixed_setuptools_workaround = True
os.chdir(self.base)
print("Updating lockfile")
tmpdir = os.path.join(self.appenv_dir, "updatelock")
Expand Down

0 comments on commit 889fd94

Please sign in to comment.