-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Enhance Makefile for Windows compatibility and Python version support #3159
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Conversation
|
||
.PHONY: .docs-insiders-install | ||
.docs-insiders-install: ## Install insiders packages for docs if necessary | ||
ifeq ($(shell uv pip show mkdocs-material | grep -q insiders && echo 'installed'), installed) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why was this changed?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
After careful consideration, the original method is indeed better
Makefile
Outdated
ifeq ($(DETECTED_OS),Windows) | ||
@echo Usage: make [recipe] | ||
@echo Recipes: | ||
@uv run python -c "import re; [print(f' {m[0]:<20} {m[1]}') for m in re.findall(r'^([a-zA-Z0-9_-]+):.*?## (.*)$$', open('$(MAKEFILE_LIST)').read(), re.MULTILINE)]" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This would require uv
to be installed already, which is not ideal
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I have made targeted modifications, so there is no need to install UV now
Improve the Makefile to support Windows environments and streamline the setup for Python versions 3.10 to 3.13. This update ensures consistent behavior across different operating systems.