mirror of
https://github.com/esphome/esphome.git
synced 2025-09-03 03:42:20 +01:00
call platformio and esptool using subprocess if $ESPHOME_USE_SUBPROCESS is set (#359)
* call platformio and esptool using subprocess if $ESPHOME_USE_SUBPROCESS is set * Update setup.py
This commit is contained in:
committed by
Otto Winter
parent
c86675f644
commit
d799c03f0c
12
setup.py
12
setup.py
@@ -1,6 +1,7 @@
|
||||
#!/usr/bin/env python
|
||||
"""esphomeyaml setup script."""
|
||||
from setuptools import setup, find_packages
|
||||
import os
|
||||
|
||||
from esphomeyaml import const
|
||||
|
||||
@@ -23,18 +24,25 @@ DOWNLOAD_URL = '{}/archive/{}.zip'.format(GITHUB_URL, const.__version__)
|
||||
|
||||
REQUIRES = [
|
||||
'voluptuous>=0.11.1',
|
||||
'platformio>=3.5.3',
|
||||
'pyyaml>=3.12',
|
||||
'paho-mqtt>=1.3.1',
|
||||
'colorlog>=3.1.2',
|
||||
'tornado>=5.0.0',
|
||||
'esptool>=2.3.1',
|
||||
'typing>=3.0.0;python_version<"3.5"',
|
||||
'protobuf>=3.4',
|
||||
'tzlocal>=1.4',
|
||||
'pyserial>=3.4,<4',
|
||||
]
|
||||
|
||||
# If you have problems importing platformio and esptool as modules you can set
|
||||
# $ESPHOME_USE_SUBPROCESS to make ESPHome call their executables instead.
|
||||
# This means they have to be in your $PATH.
|
||||
if os.environ.get('ESPHOME_USE_SUBPROCESS') is None:
|
||||
REQUIRES.extend([
|
||||
'platformio>=3.5.3',
|
||||
'esptool>=2.3.1',
|
||||
])
|
||||
|
||||
CLASSIFIERS = [
|
||||
'Environment :: Console',
|
||||
'Intended Audience :: Developers',
|
||||
|
Reference in New Issue
Block a user