@@ -210,6 +210,7 @@ def cmd_build(self):
210210 debug = self .args .get ("debug" , False )
211211 lax = self .args .get ("lax" , False )
212212 sdl3 = self .args .get ("sdl3" , False )
213+ stripped = self .args .get ("stripped" , False )
213214 sanitize = self .args .get ("sanitize" )
214215 coverage = self .args .get ("coverage" , False )
215216 if wheel_dir and coverage :
@@ -248,13 +249,18 @@ def cmd_build(self):
248249 if sdl3 :
249250 install_args .extend (SDL3_ARGS )
250251
252+ if stripped :
253+ install_args .append ("-Csetup-args=-Dstripped=true" )
254+
251255 if coverage :
252256 install_args .extend (COVERAGE_ARGS )
253257
254258 if sanitize :
255259 install_args .append (f"-Csetup-args=-Db_sanitize={ sanitize } " )
256260
257- info_str = f"with { debug = } , { lax = } , { sdl3 = } , and { coverage = } "
261+ info_str = (
262+ f"with { debug = } , { lax = } , { sdl3 = } , { stripped = } , { coverage = } and { sanitize = } "
263+ )
258264 if wheel_dir :
259265 pprint (f"Building wheel at '{ wheel_dir } ' ({ info_str } )" )
260266 cmd_run (
@@ -382,6 +388,11 @@ def parse_args(self):
382388 action = "store_true" ,
383389 help = "Build against SDL3 instead of the default SDL2" ,
384390 )
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+ )
385396 build_parser .add_argument (
386397 "--sanitize" ,
387398 choices = [
0 commit comments