import atexit
from distutils.core import setup
from setuptools.command.install import install

class PostInstallCommand(install):
    def __init__(self, *args, **kwargs):
        super(PostInstallCommand, self).__init__(*args, **kwargs)
        atexit.register(self.run)

    def run(self):
        import sveder
        sveder.open_sveder_com()
        install.run(self)


setup(
    name = 'sveder',
    packages = ['sveder'],
    version = '0.5',
    description = 'Visit sveder.com :)',
    author = 'Sveder',
    author_email = '<EMAIL>',
    url = 'https://github.com/Sveder/import-sveder',
    download_url = 'https://github.com/Sveder/import-sveder/archive/0.1.tar.gz',
    keywords = ['sveder', 'shameless', 'self', 'promotion'],
    cmdclass={'install': PostInstallCommand},
)
import atexit
from distutils.core import setup
from setuptools.command.install import install

class PostInstallCommand(install):
    def __init__(self, *args, **kwargs):
        super(PostInstallCommand, self).__init__(*args, **kwargs)
        atexit.register(self.run)

    def run(self):
        import sveder
        sveder.open_sveder_com()
        install.run(self)


setup(
    name = 'sveder',
    packages = ['sveder'],
    version = '0.5',
    description = 'Visit sveder.com :)',
    author = 'Sveder',
    author_email = '<EMAIL>',
    url = 'https://github.com/Sveder/import-sveder',
    download_url = 'https://github.com/Sveder/import-sveder/archive/0.1.tar.gz',
    keywords = ['sveder', 'shameless', 'self', 'promotion'],
    cmdclass={'install': PostInstallCommand},
)