@@ -210,6 +210,7 @@ def cmd_build(self):
210
210
debug = self .args .get ("debug" , False )
211
211
lax = self .args .get ("lax" , False )
212
212
sdl3 = self .args .get ("sdl3" , False )
213
+ stripped = self .args .get ("stripped" , False )
213
214
sanitize = self .args .get ("sanitize" )
214
215
coverage = self .args .get ("coverage" , False )
215
216
if wheel_dir and coverage :
@@ -248,13 +249,18 @@ def cmd_build(self):
248
249
if sdl3 :
249
250
install_args .extend (SDL3_ARGS )
250
251
252
+ if stripped :
253
+ install_args .append ("-Csetup-args=-Dstripped=true" )
254
+
251
255
if coverage :
252
256
install_args .extend (COVERAGE_ARGS )
253
257
254
258
if sanitize :
255
259
install_args .append (f"-Csetup-args=-Db_sanitize={ sanitize } " )
256
260
257
- info_str = f"with { debug = } , { lax = } , { sdl3 = } , and { coverage = } "
261
+ info_str = (
262
+ f"with { debug = } , { lax = } , { sdl3 = } , { stripped = } , { coverage = } and { sanitize = } "
263
+ )
258
264
if wheel_dir :
259
265
pprint (f"Building wheel at '{ wheel_dir } ' ({ info_str } )" )
260
266
cmd_run (
@@ -382,6 +388,11 @@ def parse_args(self):
382
388
action = "store_true" ,
383
389
help = "Build against SDL3 instead of the default SDL2" ,
384
390
)
391
+ build_parser .add_argument (
392
+ "--stripped" ,
393
+ action = "store_true" ,
394
+ help = "Generate a stripped pygame-ce build (no docs/examples/tests/stubs)" ,
395
+ )
385
396
build_parser .add_argument (
386
397
"--sanitize" ,
387
398
choices = [
0 commit comments