Skip to content

Commit

Permalink
πŸ› fix: forbid install from source for Python < 3.12
Browse files Browse the repository at this point in the history
  • Loading branch information
zrr1999 committed Dec 14, 2023
1 parent f86fccb commit b3be2e1
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions pdm_build.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,8 @@


def pdm_build_hook_enabled(context: Context):
if sys.version_info[:2] < (3, 12):
raise RuntimeError("pyfuture cannot be installed from source for Python < 3.12")
if context.target == "editable" and not os.path.exists(".pdm-python"):
with open(".pdm-python", "w") as f:
f.write(sys.executable)
Expand Down

0 comments on commit b3be2e1

Please sign in to comment.