<s> import os <EOL> import setuptools <EOL> import sys <EOL> import time <EOL> INSTALL_DIR = os . path . join ( sys . prefix , '<STR_LIT>' , '<STR_LIT>' ) <EOL> TOPDIR = os . path . abspath ( os . path . dirname ( __file__ ) ) <EOL> VFILE = os . path . join ( TOPDIR , '<STR_LIT>' ) <EOL> args = filter ( lambda x : x [ <NUM_LIT:0> ] != '<STR_LIT:->' , sys . argv ) <EOL> command = args [ <NUM_LIT:1> ] if len ( args ) > <NUM_LIT:1> else '<STR_LIT>' <EOL> if command == '<STR_LIT>' : <EOL> PISTON_VERSION = os . environ [ '<STR_LIT>' ] <EOL> with file ( VFILE , '<STR_LIT:w>' ) as f : <EOL> f . write ( '''<STR_LIT>''' % PISTON_VERSION ) <EOL> elif command == '<STR_LIT>' : <EOL> PISTON_VERSION = time . strftime ( '<STR_LIT>' , time . localtime ( ) ) <EOL> with file ( VFILE , '<STR_LIT:w>' ) as f : <EOL> f . write ( '''<STR_LIT>''' % PISTON_VERSION ) <EOL> elif command is None : <EOL> PISTON_VERSION = '<STR_LIT>' <EOL> else : <EOL> assert os . path . exists ( VFILE ) , '<STR_LIT>' <EOL> import version as pistonversion <EOL> PISTON_VERSION = pistonversion . VERSION <EOL> packages = setuptools . find_packages ( where = '<STR_LIT>' ) <EOL> data_files = { } <EOL> for p in setuptools . findall ( '<STR_LIT>' ) : <EOL> d , _ = os . path . split ( p ) <EOL> full = os . path . join ( INSTALL_DIR , d ) <EOL> data_files [ full ] = data_files . get ( full , [ ] ) <EOL> data_files [ full ] . append ( p ) <EOL> setuptools . setup ( <EOL> name = '<STR_LIT>' , <EOL> packages = packages , <EOL> data_files = data_files . items ( ) , <EOL> package_dir = { <EOL> '<STR_LIT>' : '<STR_LIT>' , <EOL> } , <EOL> package_data = { <EOL> '<STR_LIT>' : <EOL> [ os . path . relpath ( x , '<STR_LIT>' ) <EOL> for x in setuptools . findall ( '<STR_LIT>' ) ] , <EOL> } , <EOL> version = PISTON_VERSION , <EOL> url = '<STR_LIT>' , <EOL> license = '<STR_LIT>' , <EOL> description = "<STR_LIT>" , <EOL> author = '<STR_LIT>' , <EOL> author_email = '<STR_LIT>' , <EOL> install_requires = [ '<STR_LIT>' , '<STR_LIT>' ] , <EOL> zip_safe = False , <EOL> classifiers = [ <EOL> '<STR_LIT>' , <EOL> '<STR_LIT>' , <EOL> '<STR_LIT>' , <EOL> '<STR_LIT>' , <EOL> '<STR_LIT>' , <EOL> '<STR_LIT>' , <EOL> '<STR_LIT>' , <EOL> ] <EOL> ) </s>
