mirror of
https://github.com/deepseek-ai/DeepGEMM.git
synced 2026-11-05 00:47:26 +00:00
[PR #355] fix: use importlib to load scripts/generate_pyi.py instead of package… #388
Labels
No labels
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
deepseek-ai/DeepGEMM#388
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/deepseek-ai/DeepGEMM/pull/355
Author: @Mikezhang001
Created: 6/5/2026
Status: 🔄 Open
Base:
main← Head:zb📝 Commits (1)
3e99d29fix: use importlib to load scripts/generate_pyi.py instead of package import📊 Changes
1 file changed (+7 additions, -2 deletions)
View changed files
📝
setup.py(+7 -2)📄 Description
Hi, I ran into an install issue and this PR fixes it.
What happened
Fresh clone +
./install.shblows up with:The root cause is that
setup.pydoesfrom scripts.generate_pyi import generate_pyi_fileat the top level, butscripts/doesn't have an__init__.py— so Python doesn't recognize it as a package.Looks like this was introduced in #231 when
generate_pyi.pywas added toscripts/.How to reproduce
What I changed
Instead of adding a
__init__.pytoscripts/(which feels wrong since it's not really a package), I moved the import intoCustomBuildPy.generate_pyi_file()and usedimportlibto load it by file path:This way
scripts/stays as a plain utility directory and the import only happens at build time when it's actually needed.Tested locally,
./install.shworks fine after the change.🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.