Skip to content

Fix python package install path in stubgen - #3009

Merged
zcbenz merged 1 commit into
ml-explore:mainfrom
zcbenz:stubgen-python-path
Jan 19, 2026
Merged

Fix python package install path in stubgen#3009
zcbenz merged 1 commit into
ml-explore:mainfrom
zcbenz:stubgen-python-path

Conversation

@zcbenz

@zcbenz zcbenz commented Jan 18, 2026

Copy link
Copy Markdown
Member

We need to pass the path where the mlx package is installed to stubgen, previously it was hard coded to ~/mlx/python but would fail for some cases like #3003 (comment). This PR fixes it by also searching the actual path of extension with the $<TARGET_FILE_DIR> expression.

@zcbenz
zcbenz force-pushed the stubgen-python-path branch 2 times, most recently from f2efbe3 to c6b3cf7 Compare January 18, 2026 06:36

@awni awni left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thx!

@zcbenz
zcbenz force-pushed the stubgen-python-path branch from c6b3cf7 to 9c4e24c Compare January 18, 2026 23:15
@zcbenz
zcbenz merged commit d96a2bd into ml-explore:main Jan 19, 2026
15 checks passed
@zcbenz
zcbenz deleted the stubgen-python-path branch January 19, 2026 00:34
jzdziarski pushed a commit to jzdziarski/mlx that referenced this pull request Jul 26, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants