old_contents: #
  # Copyright (c) 2007 rPath, Inc.
  #
  # All rights reserved
  #
  
  # dataManifest is a list of relative paths to include in the data tarball
  dataManifest = ['templates', 'skel', 'pixmaps', 'config']
  
  import os, sys
  
  from jobslave import constants
  from conary.lib import util
  
  # do standard setuptools inclusion
  from setuptools import setup, find_packages
  setup(
      name = "jobslave",
      version = constants.version,
      packages = find_packages(),
  )
  
  # include data separately to avoid complicated setuptools rules
  os.system('tar -czvO %s > "dist/jobslave-data-%s.tar.gz"' % \
                ('"' + '" "'.join(dataManifest) + '"', constants.version))
  
  # force deletion of .egg-info dirs
  for eggDir in [x for x in \
                     os.listdir(os.path.split(os.path.abspath(__file__))[0]) \
                     if x.endswith('.egg-info')]:
      util.rmtree(os.path.abspath(eggDir))
  
new_contents: #
  # Copyright (c) 2007 rPath, Inc.
  #
  # All rights reserved
  #
  
  # dataManifest is a list of relative paths to include in the data tarball
  dataManifest = ['templates', 'skel', 'pixmaps', 'config', 'bin', 'jobslave.init']
  
  import os, sys
  
  from jobslave import constants
  from conary.lib import util
  
  # do standard setuptools inclusion
  from setuptools import setup, find_packages
  setup(
      name = "jobslave",
      version = constants.version,
      packages = find_packages(),
  )
  
  # include data separately to avoid complicated setuptools rules
  os.system('tar -czvO %s > "dist/jobslave-data-%s.tar.gz"' % \
                ('"' + '" "'.join(dataManifest) + '"', constants.version))
  
  # force deletion of .egg-info dirs
  for eggDir in [x for x in \
                     os.listdir(os.path.split(os.path.abspath(__file__))[0]) \
                     if x.endswith('.egg-info')]:
      util.rmtree(os.path.abspath(eggDir))
  
subject: add init script and executable to setup