forked from platformio/platformio-core
Improve auto installation for SCons
This commit is contained in:
@ -12,7 +12,7 @@
|
|||||||
# 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.
|
||||||
|
|
||||||
VERSION = (2, 6, 3)
|
VERSION = (2, 6, "4.dev0")
|
||||||
__version__ = ".".join([str(s) for s in VERSION])
|
__version__ = ".".join([str(s) for s in VERSION])
|
||||||
|
|
||||||
__title__ = "platformio"
|
__title__ = "platformio"
|
||||||
|
@ -364,11 +364,17 @@ def test_scons():
|
|||||||
|
|
||||||
|
|
||||||
def install_scons():
|
def install_scons():
|
||||||
r = exec_command(["pip", "install", "-U", "scons"])
|
cmds = (
|
||||||
if r['returncode'] != 0:
|
["pip", "install", "-U", "scons"],
|
||||||
r = exec_command(["pip", "install", "--egg", "scons",
|
["pip", "install", "--egg", "scons",
|
||||||
'--install-option="--no-install-man"'])
|
'--install-option="--no-install-man"'],
|
||||||
return r['returncode'] == 0
|
["easy_install", "scons"]
|
||||||
|
)
|
||||||
|
for cmd in cmds:
|
||||||
|
r = exec_command(cmd)
|
||||||
|
if r['returncode'] == 0:
|
||||||
|
return True
|
||||||
|
return False
|
||||||
|
|
||||||
|
|
||||||
def scons_in_pip():
|
def scons_in_pip():
|
||||||
|
Reference in New Issue
Block a user