Files
swift-mirror/utils/cmpcodesize/setup.py
Brian Gesiak 307c1d98fc [cmpcodesize] Use setuptools for installation
By adding a setup.py file, users may install cmpcodesize to their PATH,
by running `python utils/cmpcodesize/setup.py install`.

Should the Swift project choose to do so, this package may also be uploaded
to the Python Package Index (https://pypi.python.org/pypi). Doing so would
allow anyone with an Internet connection to install cmpcodesize by
running `pip install cmpcodesize`.

Setuptools also provides a convenient way to run unit tests (yet to be
added as of this commit).
2015-12-16 18:56:43 -05:00

42 lines
1.1 KiB
Python

import os
import setuptools
import cmpcodesize
# setuptools expects to be invoked from within the directory of setup.py,
# but it is nice to allow `python path/to/setup.py install` to work
# (for scripts, etc.)
os.chdir(os.path.dirname(os.path.abspath(__file__)))
setuptools.setup(
name="cmpcodesize",
version=cmpcodesize.__version__,
author=cmpcodesize.__author__,
author_email=cmpcodesize.__email__,
url='http://swift.org',
license='Apache',
description="A tool to compare the size of Swift compiler build products.",
keywords='compare size swift',
classifiers=[
'Development Status :: 3 - Alpha',
'Environment :: Console',
'Intended Audience :: Developers',
'License :: OSI Approved :: Apache Software License',
'Natural Language :: English',
'Operating System :: OS Independent',
'Programming Language :: Python',
'Topic :: Software Development :: Compilers',
],
zip_safe=False,
packages=setuptools.find_packages(),
entry_points={
'console_scripts': [
'cmpcodesize = cmpcodesize:main',
],
}
)