Skip to content

Let an extension be named apart from its Cargo artifact - #73

Merged
timkpaine merged 1 commit into
python-project-templates:mainfrom
Point72:tkp/python-extension-name
Aug 21, 2026
Merged

Let an extension be named apart from its Cargo artifact#73
timkpaine merged 1 commit into
python-project-templates:mainfrom
Point72:tkp/python-extension-name

Conversation

@timkpaine

Copy link
Copy Markdown
Member

The Python extension filename was always derived from the Cargo artifact stem, so the cdylib had to be named for the module it becomes. A project whose extension links a core library of the same name then emits two cdylibs called the same thing into target/, which collide on Windows.

Add an optional python-extension-name on an artifact to supply the module stem directly, freeing the Cargo lib name to be unique.

The Python extension filename was always derived from the Cargo artifact
stem, so the cdylib had to be named for the module it becomes. A project
whose extension links a core library of the same name then emits two
cdylibs called the same thing into target/, which collide on Windows.

Add an optional python-extension-name on an artifact to supply the module
stem directly, freeing the Cargo lib name to be unique.
@codecov

codecov Bot commented Aug 21, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 86.52%. Comparing base (0f888a0) to head (c739d1f).

Additional details and impacted files
@@            Coverage Diff             @@
##             main      #73      +/-   ##
==========================================
+ Coverage   86.08%   86.52%   +0.43%     
==========================================
  Files          11       11              
  Lines        1538     1551      +13     
==========================================
+ Hits         1324     1342      +18     
+ Misses        214      209       -5     

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@timkpaine
timkpaine merged commit 36b0cc7 into python-project-templates:main Aug 21, 2026
6 checks passed
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.

1 participant