Select Git revision
Code owners
Assign users and groups as approvers for specific file changes. Learn more.
setup.py 1.07 KiB
#!/usr/bin/env python
# -*- coding: utf-8 -*-
"""
Setup file for adwin_control.
This file was generated with PyScaffold 3.0.3.
PyScaffold helps you to put up the scaffold of your new Python project.
Learn more under: http://pyscaffold.org/
"""
import sys
from setuptools import setup
# Add here console scripts and other entry points in ini-style format
entry_points = """
[console_scripts]
adwin_control = adwin_control.run:main
# For example:
# fibonacci = adwin_control.skeleton:run
"""
# Work around mbcs bug in distutils.
# http://bugs.python.org/issue10945
import codecs
try:
codecs.lookup('mbcs')
except LookupError:
ascii = codecs.lookup('utf-8')
func = lambda name, enc=ascii: {True: enc}.get(name=='mbcs')
codecs.register(func)
def setup_package():
needs_sphinx = {'build_sphinx', 'upload_docs'}.intersection(sys.argv)
sphinx = ['sphinx'] if needs_sphinx else []
setup(setup_requires=['pyscaffold>=3.0a0,<3.1a0'] + sphinx,
entry_points=entry_points,
use_pyscaffold=True)
if __name__ == "__main__":
setup_package()