Commit 4910dac
committed
Separate wheel and source distribution builds
Add build-sourcedist recipe and fix duplicate source dist bug where
macOS/Windows were building source distributions unnecessarily.
Changes to Justfile:
1. Modified 'build' recipe to only build wheels (python -m build --wheel)
- Keeps NVX flag which only applies to native wheel compilation
- Clear separation: build = wheels only
2. Added 'build-sourcedist' recipe to build source dist only
- No NVX flag (doesn't apply to source distributions)
- Uses python -m build --sdist
3. build-all continues to work as meta-recipe for all venvs
Changes to wheels.yml:
1. Added 'Build source distribution' step (Linux x86_64 only)
- Runs after wheel build
- Calls 'just build-sourcedist'
- Source dists are platform-independent, only need one
Result:
- Linux: Builds wheels (no NVX) + source dist (once)
- macOS: Builds wheels (with NVX) only
- Windows: Builds wheels (with NVX) only
This fixes the bug where macOS and Windows were creating duplicate source
distributions, causing file conflicts during artifact downloads in release
workflow due to overwrite: false setting.1 parent 60c658a commit 4910dac
2 files changed
+28
-4
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
192 | 192 | | |
193 | 193 | | |
194 | 194 | | |
| 195 | + | |
| 196 | + | |
| 197 | + | |
| 198 | + | |
| 199 | + | |
| 200 | + | |
| 201 | + | |
| 202 | + | |
195 | 203 | | |
196 | 204 | | |
197 | 205 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
789 | 789 | | |
790 | 790 | | |
791 | 791 | | |
792 | | - | |
| 792 | + | |
793 | 793 | | |
794 | 794 | | |
795 | 795 | | |
| |||
801 | 801 | | |
802 | 802 | | |
803 | 803 | | |
804 | | - | |
805 | | - | |
806 | | - | |
| 804 | + | |
| 805 | + | |
| 806 | + | |
| 807 | + | |
| 808 | + | |
| 809 | + | |
| 810 | + | |
| 811 | + | |
| 812 | + | |
| 813 | + | |
| 814 | + | |
| 815 | + | |
| 816 | + | |
| 817 | + | |
| 818 | + | |
| 819 | + | |
| 820 | + | |
| 821 | + | |
| 822 | + | |
807 | 823 | | |
808 | 824 | | |
809 | 825 | | |
| |||
0 commit comments