<s> import os <EOL> import sipconfig <EOL> import PyQt4 . pyqtconfig as pyqtconfig <EOL> build_file = "<STR_LIT>" <EOL> config = pyqtconfig . Configuration ( ) <EOL> print dir ( config ) <EOL> qt_sip_flags = config . pyqt_sip_flags <EOL> os . system ( "<STR_LIT:U+0020>" . join ( [ config . sip_bin , "<STR_LIT:-c>" , "<STR_LIT:.>" , "<STR_LIT>" , build_file , "<STR_LIT>" , config . pyqt_sip_dir , qt_sip_flags , "<STR_LIT>" ] ) ) <EOL> installs = [ ] <EOL> installs . append ( [ "<STR_LIT>" , os . path . join ( config . default_sip_dir , "<STR_LIT>" ) ] ) <EOL> installs . append ( [ "<STR_LIT>" , config . default_mod_dir ] ) <EOL> makefile = pyqtconfig . QtGuiModuleMakefile ( <EOL> configuration = config , <EOL> build_file = build_file , <EOL> installs = installs <EOL> ) <EOL> makefile . extra_lib_dirs = [ config . qt_lib_dir ] <EOL> makefile . extra_libs = [ "<STR_LIT>" ] <EOL> makefile . extra_include_dirs = [ config . qt_inc_dir + "<STR_LIT>" , "<STR_LIT>" ] <EOL> makefile . generate ( ) <EOL> content = { <EOL> "<STR_LIT>" : config . default_sip_dir , <EOL> "<STR_LIT>" : qt_sip_flags <EOL> } <EOL> sipconfig . create_config_module ( "<STR_LIT>" , "<STR_LIT>" , content ) </s>
