from setuptools import find_packages
from distutils.core import setup

setup(
    name='skipper',
    version='0.0.1',
    url='http://github.com/Stratoscale/skipper',
    author='Adir Gabai',
    author_mail='adir@stratoscale.com',
    packages=find_packages(include=['skipper*']),
    data_files=[
        ('/etc/bash_completion.d', ['data/skipper-complete.sh']),
    ],
    entry_points={
          'console_scripts': [
              'skipper = skipper.main:main',
          ],
      },
    install_requires=[
            'PyYAML>=3.11',
            'click>=6.6',
            'requests>=2.10.0',
            'tabulate>=0.7.5',
        ]
)

import os
from setuptools import find_packages
from distutils.core import setup



data_files = []
# Add bash completion script in case we are running as root
if os.getuid() == 0:
    data_files=[
        ('/etc/bash_completion.d', ['data/skipper-complete.sh'])
    ]

setup(
    name='skipper',
    version='0.0.1',
    url='http://github.com/Stratoscale/skipper',
    author='Adir Gabai',
    author_mail='adir@stratoscale.com',
    packages=find_packages(include=['skipper*']),
    data_files=data_files,
    entry_points={
          'console_scripts': [
              'skipper = skipper.main:main',
          ],
      },
    install_requires=[
            'PyYAML>=3.11',
            'click>=6.6',
            'requests>=2.10.0',
            'tabulate>=0.7.5',
        ]
)

Install bash completion script only when running the installation script as root. This is also a workaround for a bug that prevents tox from install the above script while creating the virtual environment.
Install bash completion script only when running the installation script
as root. This is also a workaround for a bug that prevents tox from install the
above script while creating the virtual environment.
