forked from platformio/platformio-core
Use PySerial < 3 for Python 2.6
This commit is contained in:
@ -29,8 +29,8 @@ PlatformIO
|
|||||||
:alt: Join the chat at https://gitter.im/platformio/platformio
|
:alt: Join the chat at https://gitter.im/platformio/platformio
|
||||||
:target: https://gitter.im/platformio/platformio
|
:target: https://gitter.im/platformio/platformio
|
||||||
.. image:: http://img.shields.io/paypal/donate.png?color=yellow
|
.. image:: http://img.shields.io/paypal/donate.png?color=yellow
|
||||||
:alt: Donate to PlatformIO Organisation
|
:alt: Support PlatformIO Team
|
||||||
:target: https://www.paypal.com/cgi-bin/webscr?cmd=_donations&business=me%40ikravets%2ecom&item_name=PlatformIO&item_number=GitHub¤cy_code=USD
|
:target: https://www.bountysource.com/teams/platformio
|
||||||
|
|
||||||
`Home & Demo <http://platformio.org>`_ |
|
`Home & Demo <http://platformio.org>`_ |
|
||||||
`Project Examples <https://github.com/platformio/platformio/tree/develop/examples>`_ |
|
`Project Examples <https://github.com/platformio/platformio/tree/develop/examples>`_ |
|
||||||
|
23
setup.py
23
setup.py
@ -12,11 +12,25 @@
|
|||||||
# See the License for the specific language governing permissions and
|
# See the License for the specific language governing permissions and
|
||||||
# limitations under the License.
|
# limitations under the License.
|
||||||
|
|
||||||
|
import sys
|
||||||
|
|
||||||
from setuptools import find_packages, setup
|
from setuptools import find_packages, setup
|
||||||
|
|
||||||
from platformio import (__author__, __description__, __email__, __license__,
|
from platformio import (__author__, __description__, __email__, __license__,
|
||||||
__title__, __url__, __version__)
|
__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(
|
setup(
|
||||||
name=__title__,
|
name=__title__,
|
||||||
@ -27,14 +41,7 @@ setup(
|
|||||||
author_email=__email__,
|
author_email=__email__,
|
||||||
url=__url__,
|
url=__url__,
|
||||||
license=__license__,
|
license=__license__,
|
||||||
install_requires=[
|
install_requires=install_requires,
|
||||||
"bottle<0.13",
|
|
||||||
"click>=3.2,<6",
|
|
||||||
"lockfile>=0.9.1,<0.13",
|
|
||||||
"pyserial<4",
|
|
||||||
"requests>=2.4.0,<3",
|
|
||||||
"colorama"
|
|
||||||
],
|
|
||||||
packages=find_packages(),
|
packages=find_packages(),
|
||||||
package_data={
|
package_data={
|
||||||
"platformio": [
|
"platformio": [
|
||||||
|
Reference in New Issue
Block a user