import subprocess
from setuptools import setup

import startup


subprocess.check_call('./gen_manifest.sh')


setup(
    name = 'startup',
    version = startup.__version__,
    description = 'A dependency graph resolver for program startup',
    long_description = startup.__doc__,

    author = startup.__author__,
    author_email = startup.__author_email__,
    license = startup.__license__,
    url = 'https://github.com/clchiou/startup',

    py_modules = ['startup'],
    test_suite = 'tests',

    platforms = '*',
    classifiers = [
        'Development Status :: 1 - Planning',
        'Intended Audience :: Developers',
        'License :: OSI Approved :: MIT License',
        'Operating System :: OS Independent',
        'Programming Language :: Python :: 3 :: Only',
        'Topic :: Software Development :: Libraries :: Python Modules',
    ],
)

import subprocess
from setuptools import setup

try:
    import buildtools
except ImportError:
    buildtools = None

import startup


subprocess.check_call('./gen_manifest.sh')


if buildtools:
    cmdclass = {
        'bdist_zipapp': buildtools.make_bdist_zipapp(main_optional=True),
    }
else:
    cmdclass = {}


setup(
    name = 'startup',
    version = startup.__version__,
    description = 'A dependency graph resolver for program startup',
    long_description = startup.__doc__,

    author = startup.__author__,
    author_email = startup.__author_email__,
    license = startup.__license__,
    url = 'https://github.com/clchiou/startup',

    cmdclass = cmdclass,

    py_modules = ['startup'],
    test_suite = 'tests',

    platforms = '*',
    classifiers = [
        'Development Status :: 1 - Planning',
        'Intended Audience :: Developers',
        'License :: OSI Approved :: MIT License',
        'Operating System :: OS Independent',
        'Programming Language :: Python :: 3 :: Only',
        'Topic :: Software Development :: Libraries :: Python Modules',
    ],
)

Support bdist_zipapp when buildtools is available
Support bdist_zipapp when buildtools is available
