Use PySerial < 3 for Python 2.6

This commit is contained in:
Ivan Kravets
2015-12-30 00:13:38 +02:00
parent 38d9f0f5bc
commit 2dd2dd4f0d
2 changed files with 17 additions and 10 deletions

View File

@ -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&currency_code=USD
:alt: Support PlatformIO Team
:target: https://www.bountysource.com/teams/platformio
`Home & Demo <http://platformio.org>`_ |
`Project Examples <https://github.com/platformio/platformio/tree/develop/examples>`_ |

View File

@ -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": [