<s> import os , urllib . request , shutil , subprocess <EOL> from glob import glob <EOL> sdl_url = '<STR_LIT>' <EOL> sdl_filename = '<STR_LIT>' <EOL> sdl_dir = '<STR_LIT>' <EOL> shutil . rmtree ( '<STR_LIT>' , ignore_errors = True ) <EOL> os . mkdir ( '<STR_LIT>' ) <EOL> if not os . path . exists ( sdl_filename ) : <EOL> response = urllib . request . urlopen ( sdl_url ) <EOL> data = response . read ( ) <EOL> open ( sdl_filename , '<STR_LIT:wb>' ) . write ( data ) <EOL> shutil . unpack_archive ( sdl_filename , '<STR_LIT>' ) <EOL> libs = glob ( os . path . join ( '<STR_LIT>' , sdl_dir , '<STR_LIT>' ) ) <EOL> [ shutil . copy ( x , '<STR_LIT>' ) for x in libs ] <EOL> subprocess . check_call ( [ '<STR_LIT>' , r'<STR_LIT>' , '<STR_LIT>' , <EOL> '<STR_LIT>' , '<STR_LIT>' ] ) <EOL> subprocess . check_call ( [ '<STR_LIT>' ] , cwd = '<STR_LIT>' ) <EOL> shutil . copy ( '<STR_LIT>' , '<STR_LIT>' ) <EOL> subprocess . check_call ( [ r'<STR_LIT>' , '<STR_LIT>' ] , <EOL> cwd = '<STR_LIT>' ) <EOL> shutil . copy ( '<STR_LIT>' , '<STR_LIT>' ) <EOL> shutil . rmtree ( '<STR_LIT>' ) </s>
