Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/usr/bin/env python
- # coding: utf-8
- from __future__ import print_function
- import os.path
- import warnings
- import sys
- try:
- from setuptools import setup, Command
- setuptools_available = True
- except ImportError:
- from distutils.core import setup, Command
- setuptools_available = False
- from distutils.spawn import spawn
- try:
- # This will create an exe that needs Microsoft Visual C++ 2008
- # Redistributable Package
- import py2exe
- except ImportError:
- if len(sys.argv) >= 2 and sys.argv[1] == 'py2exe':
- print('Cannot import py2exe', file=sys.stderr)
- exit(1)
- py2exe_options = {
- 'bundle_files': 1,
- 'compressed': 1,
- 'optimize': 2,
- 'dist_dir': '.',
- 'dll_excludes': ['w9xpopen.exe', 'crypt32.dll'],
- }
- # Get the version from youtube_dl/version.py without importing the package
- exec(compile(open('comic_dl/version.py').read(),
- 'comic_dl/version.py', 'exec'))
- DESCRIPTION = 'Comic-dl'
- LONG_DESCRIPTION = 'Command-line program to download manga and comics from various sites.'
- py2exe_console = [{
- 'script': './comic_dl/comic-dl.py',
- 'dest_base': 'comic-dl',
- 'version': __version__,
- 'description': DESCRIPTION,
- 'comments': LONG_DESCRIPTION,
- 'product_name': 'comic-dl',
- 'product_version': __version__,
- }]
- py2exe_params = {
- 'console': py2exe_console,
- 'options': {'py2exe': py2exe_options},
- 'zipfile': None
- }
- if len(sys.argv) >= 2 and sys.argv[1] == 'py2exe':
- params = py2exe_params
- else:
- print ("Skipping")
- setup(
- name='comic-dl',
- version=__version__,
- description=DESCRIPTION,
- long_description=LONG_DESCRIPTION,
- url='https://github.com/Xonshiz/comic-dl',
- author='Xonshiz',
- author_email='xonshiz@psychoticelites.com',
- packages=[
- 'comic_dl',
- 'comic_dl.sites', 'comic_dl.downloader'],
- # Provokes warning on most systems (why?!)
- # test_suite = 'nose.collector',
- # test_requires = ['nosetest'],
- classifiers=[
- 'Topic :: Multimedia :: Video',
- 'Development Status :: 5 - Production/Stable',
- 'Environment :: Console',
- 'License :: Public Domain',
- 'Programming Language :: Python :: 2.6',
- 'Programming Language :: Python :: 2.7',
- 'Programming Language :: Python :: 3',
- 'Programming Language :: Python :: 3.2',
- 'Programming Language :: Python :: 3.3',
- 'Programming Language :: Python :: 3.4',
- 'Programming Language :: Python :: 3.5',
- ],
- )
Add Comment
Please, Sign In to add comment