|
1 | 1 | #!/usr/bin/env python |
| 2 | + |
2 | 3 | """ |
3 | | -Copyright (c) 2014 Pimoroni |
| 4 | +Copyright (c) 2015 Pimoroni |
4 | 5 | Permission is hereby granted, free of charge, to any person obtaining a copy of |
5 | 6 | this software and associated documentation files (the "Software"), to deal in |
6 | 7 | the Software without restriction, including without limitation the rights to |
|
18 | 19 | SOFTWARE. |
19 | 20 | """ |
20 | 21 |
|
21 | | -from distutils.core import setup |
| 22 | +try: |
| 23 | + from setuptools import setup |
| 24 | +except ImportError: |
| 25 | + from distutils.core import setup |
22 | 26 |
|
23 | 27 | classifiers = ['Development Status :: 5 - Production/Stable', |
24 | 28 | 'Operating System :: POSIX :: Linux', |
|
30 | 34 | 'Topic :: Software Development', |
31 | 35 | 'Topic :: System :: Hardware'] |
32 | 36 |
|
33 | | -setup(name = 'Cap1xxx', |
34 | | - version = '0.1.2', |
35 | | - author = 'Philip Howard', |
36 | | - author_email= 'phil@pimoroni.com', |
37 | | - description = 'A module to drive various Microchip cap1xxx touch ICs', |
38 | | - long_description= open('README.txt').read() + open('CHANGELOG.txt').read(), |
39 | | - license = 'MIT', |
40 | | - keywords = 'Raspberry Pi', |
41 | | - url = 'http://shop.pimoroni.com', |
42 | | - classifiers = classifiers, |
43 | | - py_modules = ['cap1xxx'] |
| 37 | +setup( |
| 38 | + name = 'Cap1xxx', |
| 39 | + version = '0.1.2', |
| 40 | + author = 'Philip Howard', |
| 41 | + author_email = 'phil@pimoroni.com', |
| 42 | + description = 'A module to drive various Microchip cap1xxx touch ICs', |
| 43 | + long_description= open('README.txt').read() + open('CHANGELOG.txt').read(), |
| 44 | + license = 'MIT', |
| 45 | + keywords = 'Raspberry Pi', |
| 46 | + url = 'http://shop.pimoroni.com', |
| 47 | + classifiers = classifiers, |
| 48 | + py_modules = ['cap1xxx'], |
| 49 | + install_requires= [] |
44 | 50 | ) |
0 commit comments