<s> """<STR_LIT>""" <EOL> import ez_setup <EOL> import numpy <EOL> ez_setup . use_setuptools ( ) <EOL> import sys <EOL> import os <EOL> from esky . bdist_esky import Executable <EOL> from setuptools import setup <EOL> if sys . platform == '<STR_LIT:win32>' : <EOL> import py2exe <EOL> APP = [ '<STR_LIT>' , ] <EOL> """<STR_LIT>""" <EOL> with open ( "<STR_LIT>" , '<STR_LIT:rb>' ) as f : <EOL> VERSION = f . readline ( ) . split ( "<STR_LIT:=>" ) [ <NUM_LIT:1> ] . strip ( ) . replace ( '<STR_LIT:">' , '<STR_LIT>' ) <EOL> """<STR_LIT>""" <EOL> with open ( "<STR_LIT>" ) as f : <EOL> ignorefiles = [ l . strip ( ) for l in f . readlines ( ) ] <EOL> DATA_FILES = [ ( '<STR_LIT>' , [ '<STR_LIT>' ] ) ] <EOL> for datadir in [ '<STR_LIT>' , '<STR_LIT>' ] : <EOL> for root , dirs , files in os . walk ( datadir ) : <EOL> DATA_FILES . append ( ( root , [ os . path . join ( root , fn ) for fn in files if fn not in ignorefiles ] ) ) <EOL> """<STR_LIT>""" <EOL> INCLUDES = [ <EOL> "<STR_LIT>" , <EOL> "<STR_LIT>" , <EOL> "<STR_LIT>" , <EOL> "<STR_LIT>" , <EOL> "<STR_LIT>" , <EOL> "<STR_LIT>" , <EOL> "<STR_LIT>" , <EOL> "<STR_LIT>" , <EOL> "<STR_LIT>" , <EOL> "<STR_LIT>" , <EOL> "<STR_LIT>" , <EOL> "<STR_LIT>" , <EOL> "<STR_LIT>" , <EOL> "<STR_LIT>" , <EOL> "<STR_LIT>" , <EOL> "<STR_LIT>" , <EOL> "<STR_LIT>" , <EOL> "<STR_LIT>" , <EOL> "<STR_LIT>" , <EOL> "<STR_LIT>" , <EOL> "<STR_LIT>" , <EOL> "<STR_LIT>" , <EOL> "<STR_LIT>" , <EOL> "<STR_LIT>" , <EOL> "<STR_LIT>" , <EOL> "<STR_LIT>" , <EOL> "<STR_LIT>" , <EOL> "<STR_LIT>" , <EOL> "<STR_LIT>" , <EOL> "<STR_LIT>" , <EOL> "<STR_LIT>" , <EOL> "<STR_LIT>" , <EOL> "<STR_LIT>" , <EOL> "<STR_LIT>" , <EOL> "<STR_LIT>" , <EOL> "<STR_LIT>" , <EOL> "<STR_LIT>" , <EOL> "<STR_LIT>" , <EOL> "<STR_LIT>" , <EOL> "<STR_LIT>" , <EOL> "<STR_LIT>" , <EOL> "<STR_LIT>" , <EOL> "<STR_LIT>" , <EOL> "<STR_LIT>" , <EOL> "<STR_LIT>" , <EOL> "<STR_LIT>" , <EOL> "<STR_LIT>" , <EOL> "<STR_LIT>" , <EOL> "<STR_LIT>" , <EOL> "<STR_LIT>" , <EOL> "<STR_LIT>" , <EOL> "<STR_LIT>" , <EOL> "<STR_LIT>" , <EOL> "<STR_LIT>" , <EOL> "<STR_LIT>" , <EOL> "<STR_LIT>" , <EOL> "<STR_LIT>" , <EOL> "<STR_LIT>" , <EOL> "<STR_LIT>" , <EOL> "<STR_LIT>" , <EOL> "<STR_LIT>" , <EOL> "<STR_LIT>" , <EOL> "<STR_LIT>" , <EOL> "<STR_LIT>" , <EOL> "<STR_LIT>" , <EOL> "<STR_LIT>" , <EOL> "<STR_LIT>" , <EOL> "<STR_LIT>" , <EOL> "<STR_LIT>" , <EOL> "<STR_LIT>" , <EOL> "<STR_LIT>" , <EOL> "<STR_LIT>" , <EOL> "<STR_LIT>" , <EOL> "<STR_LIT>" , <EOL> "<STR_LIT>" , <EOL> "<STR_LIT>" , <EOL> "<STR_LIT>" , <EOL> "<STR_LIT>" , <EOL> "<STR_LIT>" , <EOL> "<STR_LIT>" , <EOL> "<STR_LIT>" , <EOL> "<STR_LIT>" , <EOL> "<STR_LIT>" , <EOL> "<STR_LIT>" , <EOL> "<STR_LIT>" , <EOL> "<STR_LIT>" , <EOL> "<STR_LIT>" , <EOL> "<STR_LIT>" , <EOL> "<STR_LIT>" , <EOL> "<STR_LIT>" , <EOL> "<STR_LIT>" , <EOL> "<STR_LIT>" , <EOL> "<STR_LIT>" , <EOL> "<STR_LIT>" , <EOL> "<STR_LIT>" , <EOL> "<STR_LIT>" , <EOL> "<STR_LIT>" , <EOL> "<STR_LIT>" , <EOL> "<STR_LIT>" , <EOL> "<STR_LIT>" , <EOL> "<STR_LIT>" , <EOL> "<STR_LIT>" , <EOL> "<STR_LIT>" , <EOL> "<STR_LIT>" , <EOL> "<STR_LIT>" , <EOL> "<STR_LIT>" , <EOL> "<STR_LIT>" , <EOL> "<STR_LIT>" , <EOL> "<STR_LIT>" , <EOL> "<STR_LIT>" , <EOL> "<STR_LIT>" , <EOL> "<STR_LIT>" , <EOL> "<STR_LIT>" , <EOL> "<STR_LIT>" , <EOL> "<STR_LIT>" , <EOL> "<STR_LIT>" , <EOL> "<STR_LIT>" , <EOL> "<STR_LIT>" , <EOL> "<STR_LIT>" , <EOL> "<STR_LIT>" <EOL> ] <EOL> WIN_OPTIONS = { <EOL> "<STR_LIT>" : "<STR_LIT>" , <EOL> "<STR_LIT>" : INCLUDES , <EOL> "<STR_LIT>" : "<STR_LIT>" , <EOL> "<STR_LIT>" : [ "<STR_LIT>" , "<STR_LIT>" , "<STR_LIT>" , "<STR_LIT>" ] , <EOL> "<STR_LIT>" : [ ] , <EOL> '<STR_LIT>' : <NUM_LIT:1> <EOL> } <EOL> DARWIN_OPTIONS = { <EOL> "<STR_LIT>" : True , <EOL> "<STR_LIT>" : "<STR_LIT>" , <EOL> "<STR_LIT>" : "<STR_LIT>" , <EOL> "<STR_LIT>" : "<STR_LIT>" , <EOL> "<STR_LIT>" : INCLUDES , <EOL> "<STR_LIT>" : [ "<STR_LIT>" , "<STR_LIT>" , "<STR_LIT>" , "<STR_LIT>" ] , <EOL> "<STR_LIT>" : True , <EOL> "<STR_LIT>" : { <EOL> "<STR_LIT>" : VERSION , <EOL> "<STR_LIT>" : True , <EOL> "<STR_LIT>" : True <EOL> } , <EOL> } <EOL> """<STR_LIT>""" <EOL> if sys . platform == '<STR_LIT>' : <EOL> filenames = [ "<STR_LIT>" , ] <EOL> for fn in filenames : <EOL> rv = os . system ( "<STR_LIT>" . format ( fn ) ) <EOL> rv += os . system ( "<STR_LIT>" . format ( fn = fn ) ) <EOL> """<STR_LIT>""" <EOL> patched = False <EOL> with open ( "<STR_LIT>" , "<STR_LIT>" ) as f : <EOL> patch = "<STR_LIT>" <EOL> for line in f . readlines ( ) : <EOL> if line == "<STR_LIT>" : <EOL> patched = True <EOL> if not patched : <EOL> f . write ( patch ) <EOL> """<STR_LIT>""" <EOL> exe = Executable ( "<STR_LIT>" , <EOL> description = "<STR_LIT>" , <EOL> gui_only = True , <EOL> icon = DARWIN_OPTIONS [ "<STR_LIT>" ] , <EOL> name = "<STR_LIT>" ) <EOL> extra_options = dict ( <EOL> setup_requires = [ '<STR_LIT>' ] , <EOL> app = [ '<STR_LIT>' ] , <EOL> options = dict ( <EOL> bdist_esky = dict ( <EOL> freezer_module = "<STR_LIT>" , <EOL> freezer_options = DARWIN_OPTIONS <EOL> ) <EOL> ) , <EOL> scripts = [ exe , ] <EOL> ) <EOL> install_requires = open ( '<STR_LIT>' ) . read ( ) <EOL> elif sys . platform == '<STR_LIT:win32>' : <EOL> """<STR_LIT>""" <EOL> exe = Executable ( "<STR_LIT>" , <EOL> description = "<STR_LIT>" , <EOL> gui_only = True , <EOL> icon = WIN_OPTIONS [ "<STR_LIT>" ] , <EOL> name = "<STR_LIT>" ) <EOL> extra_options = dict ( <EOL> setup_requires = [ '<STR_LIT>' ] , <EOL> options = dict ( <EOL> bdist_esky = dict ( <EOL> freezer_module = "<STR_LIT>" , <EOL> freezer_options = WIN_OPTIONS <EOL> ) <EOL> ) , <EOL> scripts = [ exe , ] , <EOL> zipfile = None <EOL> ) <EOL> import flaskext <EOL> try : <EOL> flaskext . __file__ <EOL> except : <EOL> flaskext_init = open ( flaskext . __path__ [ <NUM_LIT:0> ] + '<STR_LIT>' , '<STR_LIT:w>' ) <EOL> flaskext_init . close ( ) <EOL> with open ( '<STR_LIT>' ) as f : <EOL> install_requires = [ req . strip ( ) for req in f . readlines ( ) ] <EOL> else : <EOL> extra_options = dict ( <EOL> scripts = APP ) <EOL> install_requires = open ( '<STR_LIT>' ) . read ( ) <EOL> setup ( <EOL> name = "<STR_LIT>" , <EOL> version = VERSION , <EOL> author = "<STR_LIT>" , <EOL> author_email = "<STR_LIT>" , <EOL> url = "<STR_LIT>" , <EOL> packages = [ "<STR_LIT>" , "<STR_LIT>" , "<STR_LIT>" ] , <EOL> data_files = DATA_FILES , <EOL> license = "<STR_LIT>" , <EOL> description = "<STR_LIT>" , <EOL> long_description = open ( "<STR_LIT>" ) . read ( ) , <EOL> install_requires = install_requires , <EOL> ** extra_options <EOL> ) </s>
