diff --git a/README.rst b/README.rst index 31b4b513..d53ffb5f 100644 --- a/README.rst +++ b/README.rst @@ -29,8 +29,8 @@ PlatformIO :alt: Join the chat at https://gitter.im/platformio/platformio :target: https://gitter.im/platformio/platformio .. image:: http://img.shields.io/paypal/donate.png?color=yellow - :alt: Donate to PlatformIO Organisation - :target: https://www.paypal.com/cgi-bin/webscr?cmd=_donations&business=me%40ikravets%2ecom&item_name=PlatformIO&item_number=GitHub¤cy_code=USD + :alt: Support PlatformIO Team + :target: https://www.bountysource.com/teams/platformio `Home & Demo `_ | `Project Examples `_ | diff --git a/setup.py b/setup.py index a9b89b0d..1849810b 100644 --- a/setup.py +++ b/setup.py @@ -12,11 +12,25 @@ # See the License for the specific language governing permissions and # limitations under the License. +import sys + from setuptools import find_packages, setup from platformio import (__author__, __description__, __email__, __license__, __title__, __url__, __version__) +install_requires = [ + "bottle<0.13", + "click>=3.2,<6", + "lockfile>=0.9.1,<0.13", + "requests>=2.4.0,<3", + "colorama" +] + +if sys.version_info < (2, 7, 0): + install_requires.append("pyserial<3") +else: + install_requires.append("pyserial<4") setup( name=__title__, @@ -27,14 +41,7 @@ setup( author_email=__email__, url=__url__, license=__license__, - install_requires=[ - "bottle<0.13", - "click>=3.2,<6", - "lockfile>=0.9.1,<0.13", - "pyserial<4", - "requests>=2.4.0,<3", - "colorama" - ], + install_requires=install_requires, packages=find_packages(), package_data={ "platformio": [