@@ -634,7 +634,25 @@ def detect_modules(self):
634634## exts.append( Extension('_Scrap', ['scrap/_Scrapmodule.c']) )
635635 exts .append ( Extension ('_TE' , ['te/_TEmodule.c' ],
636636 extra_link_args = ['-framework' , 'Carbon' ]) )
637- ## exts.append( Extension('waste', ['waste/wastemodule.c']) )
637+ # As there is no standardized place (yet) to put user-installed
638+ # Mac libraries on OSX you should put a symlink to your Waste
639+ # installation in the same folder as your python source tree.
640+ # Or modify the next two lines:-)
641+ waste_incs = find_file ("WASTE.h" , [], ["../waste/C_C++ Headers" ])
642+ waste_libs = find_library_file (self .compiler , "WASTE" , [],
643+ ["../waste/Static Libraries" ])
644+ if waste_incs != None and waste_libs != None :
645+ exts .append ( Extension ('waste' ,
646+ ['waste/wastemodule.c' ,
647+ 'Mac/Wastemods/WEObjectHandlers.c' ,
648+ 'Mac/Wastemods/WETabHooks.c' ,
649+ 'Mac/Wastemods/WETabs.c'
650+ ],
651+ include_dirs = waste_incs + ['Mac/Wastemods' ],
652+ library_dirs = waste_libs ,
653+ libraries = ['WASTE' ],
654+ extra_link_args = ['-framework' , 'Carbon' ],
655+ ) )
638656 exts .append ( Extension ('_Win' , ['win/_Winmodule.c' ],
639657 extra_link_args = ['-framework' , 'Carbon' ]) )
640658
0 commit comments