<s> import os . path <EOL> import setuptools <EOL> import sys <EOL> from numpy . distutils . core import setup <EOL> from numpy . distutils . misc_util import Configuration <EOL> include_dirs = [ ] <EOL> library_dirs = [ ] <EOL> if sys . platform == '<STR_LIT:win32>' : <EOL> import types <EOL> def _lib_dir_option ( self , dir ) : <EOL> return '<STR_LIT>' % dir <EOL> from distutils . msvc9compiler import MSVCCompiler <EOL> setattr ( MSVCCompiler , '<STR_LIT>' , <EOL> types . MethodType ( _lib_dir_option , None , MSVCCompiler ) ) <EOL> sdkdir = os . environ . get ( '<STR_LIT>' ) <EOL> if sdkdir : <EOL> include_dirs . append ( os . path . join ( sdkdir , '<STR_LIT>' ) ) <EOL> library_dirs . append ( os . path . join ( sdkdir , '<STR_LIT>' ) ) <EOL> path = os . environ [ '<STR_LIT>' ] . split ( '<STR_LIT:;>' ) <EOL> path . append ( os . path . join ( sdkdir , '<STR_LIT>' ) ) <EOL> os . environ [ '<STR_LIT>' ] = '<STR_LIT:;>' . join ( path ) <EOL> config = Configuration ( name = '<STR_LIT>' ) <EOL> config . add_extension ( '<STR_LIT>' , <EOL> sources = [ '<STR_LIT>' , <EOL> '<STR_LIT>' ] , <EOL> include_dirs = include_dirs , <EOL> library_dirs = library_dirs ) <EOL> config . add_data_files ( '<STR_LIT>' , '<STR_LIT>' ) <EOL> kwds = { '<STR_LIT>' : [ '<STR_LIT>' ] , <EOL> '<STR_LIT:version>' : '<STR_LIT>' , <EOL> '<STR_LIT>' : False , <EOL> '<STR_LIT>' : '<STR_LIT>' , <EOL> '<STR_LIT:url>' : '<STR_LIT>' , <EOL> '<STR_LIT>' : { '<STR_LIT>' : [ '<STR_LIT>' ] } , <EOL> } <EOL> kwds . update ( config . todict ( ) ) <EOL> setup ( ** kwds ) </s>
