Commit 92e22b2
committed
fix: Correct JAR filtering in both Docker and native builds
Two critical fixes for JAR exclusion based on jar_exclusions.txt:
1. **Docker build (Dockerfile.build)**:
- python-builder stage was copying JARs from java-builder (unfiltered)
- Changed to copy from jre-builder (already filtered in that stage)
- Impact: Linux AMD64/ARM64 wheels now match Darwin/Windows sizes
2. **Native build (build-native.sh)**:
- Added debug output to show which patterns are processed
- Added nullglob to handle no-match cases gracefully
- Added counter to show how many JARs were removed
- Will help diagnose Windows-specific issues if any
Expected impact:
- Linux AMD64: 195.9M → ~157M (saves ~38M)
- Linux ARM64: 195.0M → ~157M (saves ~38M)
- Windows AMD64: 192.5M → ~157M (saves ~35M) - pending verification
- Darwin wheels: Already correct at ~157M
All platforms should now have consistent wheel sizes of ~157-158M.1 parent 62f20d4 commit 92e22b2
2 files changed
Lines changed: 10 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
92 | 92 | | |
93 | 93 | | |
94 | 94 | | |
95 | | - | |
96 | | - | |
| 95 | + | |
97 | 96 | | |
98 | | - | |
| 97 | + | |
99 | 98 | | |
100 | 99 | | |
101 | 100 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
117 | 117 | | |
118 | 118 | | |
119 | 119 | | |
| 120 | + | |
120 | 121 | | |
121 | 122 | | |
122 | 123 | | |
| 124 | + | |
123 | 125 | | |
| 126 | + | |
124 | 127 | | |
125 | 128 | | |
126 | 129 | | |
127 | 130 | | |
| 131 | + | |
| 132 | + | |
| 133 | + | |
128 | 134 | | |
129 | 135 | | |
| 136 | + | |
130 | 137 | | |
131 | 138 | | |
| 139 | + | |
132 | 140 | | |
133 | 141 | | |
134 | 142 | | |
| |||
0 commit comments