#
# Copyright (c) 2007 rPath, Inc.
#
# All rights reserved
#

# manifest is a list of relative paths to include in teh data tarball
manifest = ['templates', 'skel', 'pixmaps']

import os
from jobslave import constants

# 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(manifest) + '"', constants.version))

#
# 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']

import os, sys

# force production of source distribution only.
sys.argv = [sys.argv[0], 'sdist']
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))

tweak setup process