def bundled_settings(debug):
 settings = {}
 settings['libraries'] = []
 settings['library_dirs'] = []
 settings['include_dirs'] = [pjoin('bundled', 'zeromq', 'include')]
 settings['runtime_library_dirs'] = []
 if sys.platform.startswith('freebsd'):
  settings['libraries'].append('pthread')
 elif sys.platform.startswith('win'):
  plat = distutils.util.get_platform()
  temp = ('temp.%s-%i.%i' % (plat, sys.version_info[0], sys.version_info[1]))
  suffix = ''
  if (sys.version_info >= (3, 5)):
   ext_suffix = distutils.sysconfig.get_config_var('EXT_SUFFIX')
   suffix = os.path.splitext(ext_suffix)[0]
  if debug:
   suffix = ('_d' + suffix)
   release = 'Debug'
  else:
   release = 'Release'
  settings['libraries'].append((libzmq_name + suffix))
  settings['library_dirs'].append(pjoin('build', temp, release, 'buildutils'))
 return settings

def bundled_settings ( debug ) : settings = { } settings [ 'libraries' ] = [ ] settings [ 'library_dirs' ] = [ ] settings [ 'include_dirs' ] = [ pjoin ( 'bundled' , 'zeromq' , 'include' ) ] settings [ 'runtime_library_dirs' ] = [ ] if sys . platform . startswith ( 'freebsd' ) : settings [ 'libraries' ] . append ( 'pthread' ) elif sys . platform . startswith ( 'win' ) : plat = distutils . util . get_platform ( ) temp = ( 'temp.%s-%i.%i' % ( plat , sys . version_info [ 0 ] , sys . version_info [ 1 ] ) ) suffix = '' if ( sys . version_info >= ( 3 , 5 ) ) : ext_suffix = distutils . sysconfig . get_config_var ( 'EXT_SUFFIX' ) suffix = os . path . splitext ( ext_suffix ) [ 0 ] if debug : suffix = ( '_d' + suffix ) release = 'Debug' else : release = 'Release' settings [ 'libraries' ] . append ( ( libzmq_name + suffix ) ) settings [ 'library_dirs' ] . append ( pjoin ( 'build' , temp , release , 'buildutils' ) ) return settings
settings for linking extensions against bundled libzmq .