Open
Conversation
Owner
|
CI那边搭了完整环境是因为之前考虑自动跑测试,我觉得先留着比较好,其他都没啥问题。 |
Contributor
Author
|
没有删除 CI 的功能,两个 CI 跟以前一样:自动测试能否构建 wheel 和通过 pytest 测试。只是发现如果显式指定了构建时的依赖,就可以顺便简化 CI 里的步骤,加速 CI 过程。以及 如果是还有别的本地测试的考虑的话,那我就 revert CI 上的改动。 |
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.
问题:在 linux 上下载 cinrad 包时因为没有 whl 文件,只能从源码开始构建,然后因为缺失 numpy 和 cython 依赖而失败。
目标:没有 whl 或者本地安装时都能直接安装/构建成功。
改动:
pyproject.toml,填入构建时所需的 setuptools、numpy、cython 依赖setup.py当没有安装 cython 时直接从 c 代码编译的行为,因为:.gitignore里声明了忽略 c 代码,导致git clone下来后还是要安装 cythonpip install .替代python setup.py,前者会自动根据pyproject.toml安装构建时依赖.github目录下的 CI 文件:python -m pip和python -m build现在都会自动安装构建时依赖environment.yaml中那么多依赖,所以改用简单的setup-pythonaction,CI 耗时从 5 分钟降到 1 分钟bld.bat和build.sh似乎是本地运行的脚本,里面仍然用的python setup.py。