;ò Ì]Bc@sdZdkZdkZdkZdkZd„Zeidjoeƒ odGHdkZeZnoeidjoeƒodGHdk Z e Zn=eidjodGHdk Z e ZndGHdk Z e Zd „Z d „Z d „Zd „Zed jo eƒndS(söQuick tool to help setup the needed paths and flags in your Setup file. This will call the appropriate sub-config scripts automatically. each platform config file only needs a "main" routine that returns a list of instances. the instances must contain the following variables. name: name of the dependency, as references in Setup (SDL, FONT, etc) inc_dir: path to include lib_dir: library directory lib: name of library to be linked to found: true if the dep is available cflags: extra compile flags NcCs;tiidƒo tiddjodSq3ndSdS(NsMSYSTEMsMINGW32ii(sossenvironshas_key(((sC/mnt/gmirror/ports/devel/py-game/work/pygame-1.7.1release/config.pys is_msys_mingws swin32sUsing WINDOWS configuration... s*Using WINDOWS mingw/msys configuration... sdarwinsUsing Darwin configuration... sUsing UNIX configuration... cCsEtd|dƒ}|oti|dƒdjodSndSdS(s$ask a yes/no question, return results s [y/N]:isyiN(s raw_inputsmessagesreplysstringslower(smessagesreply((sC/mnt/gmirror/ports/devel/py-game/work/pygame-1.7.1release/config.pysconfirm/s !cCsu|io|id|i|_n|id|_d|id|_|i oB|idjo*d|_d|id|_d|_ndSnd }}}|oN|i od |i t |ƒ}n|i od |i t |ƒ}q/n7|i od |i }n|i od |i }n|iod|i}n|id||d|i ||_dS(sadd some vars to a deps = -ls = -I.s$(s)sSDLs5SDL = -I/NEED_INC_PATH_FIX -L/NEED_LIB_PATH_FIX -lSDLiNss -I$(BASE)s -L$(BASE)s -Is -Ls -ls =s ( sdepslibsnameslinesvarnamesfoundsincslidsbasepathsinc_dirslenslib_dirscflags(sdepsbasepathslidslibsinc((sC/mnt/gmirror/ports/devel/py-game/work/pygame-1.7.1release/config.pysprepdep8s0         cCsmtddƒ}tddƒ}d}x4|idƒdjo|i|ƒ|iƒ}q'Wx'|idƒdjo|iƒ}q^W|o|id |d ƒnx"|D]}|i|id ƒq¬Wxœ|o”|iƒ}d }|i d ƒ oUxR|D]F}|i|i ƒdjo|i od }|id|ƒPqþqþWn|o|i|ƒqÍqÍWdS(s"create a modified copy of Setup.insSetup.insrsSetupswss#--StartConfigiÿÿÿÿs #--EndConfigsBASE = s isCOPYLIBis#N(sopens origsetupsnewsetupslinesfindswritesreadlinesbasepathsdepssdsuseits startswithsvarnamesfound(sdepssbasepathsnewsetupsdsuseitslines origsetup((sC/mnt/gmirror/ports/devel/py-game/work/pygame-1.7.1release/config.pyswritesetupfileTs:  $ cCsçtiidƒo5dtijp tdƒotiddƒqHndtij otiidƒo%tdƒoti ddƒq‘nt i ƒ}|o:t }x|D]}t||ƒq±Wt||ƒdGHnd GHdS( NsSetups-autosBackup existing "Setup" files Setup.baksbuilds,Remove old build directory (force recompile)is` If you get compiler errors during install, doublecheck the compiler flags in the "Setup" file. sl There was an error creating the Setup file, check for errors or make a copy of "Setup.in" and edit by hand.(sosspathsisfilessyssargvsconfirmsshutilscopyfilesisdirsrmtreesCFGsmainsdepssNonesbasepathsdsprepdepswritesetupfile(sdsbasepathsdeps((sC/mnt/gmirror/ports/devel/py-game/work/pygame-1.7.1release/config.pysmainss$    s__main__(s__doc__ssyssossshutilsstrings is_msys_mingwsplatforms config_winsCFGs config_msyss config_darwins config_unixsconfirmsprepdepswritesetupfilesmains__name__(smains config_unixsstringsconfirmsCFGs config_winsprepdepssyss is_msys_mingwswritesetupfiles config_darwinsshutilsoss config_msys((sC/mnt/gmirror/ports/devel/py-game/work/pygame-1.7.1release/config.pys?s.$