Repository navigation
feat: add default python-sdk feature and unify SDK precedence - #3
Open
Shinonome-Ryoko14 wants to merge 1 commit into
Open
Shinonome-Ryoko14 wants to merge 1 commit into
Shinonome-Ryoko14 wants to merge 1 commit into
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
配合
mcpp-community/mcpp-plugins#72(rules-pythonPython SDK 分层归属设计)的同步改动。改动说明
mcpp.toml:[xlings.workspace] "xim:python" = "3.13.12"声明。python-sdkfeature(default = ["runtime", "python-sdk"]),在[feature-xlings.python-sdk]中声明"xim:python" = "3.13.12"。default-features = false, features = ["runtime"]一键关闭自动拉取。build.mcpp:<Python.h>查找优先级与mcpp.rules.python彻底统一,确保使用共享环境变量时nb_runtime.cpp与消费方扩展始终命中同一 Python ABI:MCPP_PYTHON_INCLUDE_DIR(严格模式:缺少Python.h直接报错)MCPP_PYTHON_EXECUTABLE(严格模式:无效时直接报错,不再静默回落到xim:python或PATH)VIRTUAL_ENVxim:python(来自python-sdkfeature 或消费方更近的[xlings.workspace])PATH上的python3/pythondocs/usage.md、README.md、README.zh.md):python-sdkfeature 说明、自定义 SDK 时的关闭方式以及统一后的查找优先级。验证
runtime、python-sdk)下mcpp build --strict与mcpp test全部通过。VIRTUAL_ENV/MCPP_PYTHON_EXECUTABLE优先级高于xim:python,且无效的MCPP_PYTHON_EXECUTABLE会明确报错退出。