Ghost-CLI
Ghost-CLI copied to clipboard
🐛 Fix Python version check and setuptools validation on Windows
fixes #1982
-
python3command is not available on Windows. Modified the checkPython function to check bothpythonandpython3commands before returning the result
[!NOTE] Detects Python 3 using either
pythonorpython3and runs the setuptools check against that executable; adds.DS_Storeto.gitignore.
- Doctor checks (
lib/commands/doctor/checks/python-setuptools.js):
- Detect Python 3 from either
python3orpython, ensuring major version >= 3, and return the chosen executable.- Run
setuptoolsimport check using the detectedpythonexecutable.- Preserve task titles and conditional setuptools requirement for Python >=
3.12.- Repo:
- Add
.DS_Storeto.gitignore.Written by Cursor Bugbot for commit e47180bf8669a832284231ed6a38e673315d1750. This will update automatically on new commits. Configure here.