setup.py 1.3 KB

123456789101112131415161718192021222324252627282930313233343536
  1. # Workaround for issue in Python 2.7.3
  2. # See http://bugs.python.org/issue15881#msg170215
  3. try:
  4. import multiprocessing
  5. except ImportError:
  6. pass
  7. try:
  8. # Try using ez_setup to install setuptools if not already installed.
  9. from ez_setup import use_setuptools
  10. use_setuptools()
  11. except ImportError:
  12. # Ignore import error and assume Python 3 which already has setuptools.
  13. pass
  14. from setuptools import setup, find_packages
  15. classifiers = ['Development Status :: 4 - Beta',
  16. 'Operating System :: POSIX :: Linux',
  17. 'License :: OSI Approved :: MIT License',
  18. 'Intended Audience :: Developers',
  19. 'Programming Language :: Python :: 2.7',
  20. 'Programming Language :: Python :: 3',
  21. 'Topic :: Software Development',
  22. 'Topic :: System :: Hardware']
  23. setup(name = 'ST7735',
  24. version = '0.0.1',
  25. description = 'Library to control an ST7735 TFT LCD display.',
  26. license = 'MIT',
  27. classifiers = classifiers,
  28. url = 'https://github.com/cskau/Python_ST7735/',
  29. dependency_links = ['https://github.com/adafruit/Adafruit_Python_GPIO/tarball/master#egg=Adafruit-GPIO-0.6.5'],
  30. install_requires = ['Adafruit-GPIO>=0.6.5'],
  31. packages = find_packages())