mirror of
https://github.com/platformio/platformio-core.git
synced 2025-07-29 17:47:14 +02:00
Improve auto installation for SCons
This commit is contained in:
@ -12,7 +12,7 @@
|
||||
# See the License for the specific language governing permissions and
|
||||
# limitations under the License.
|
||||
|
||||
VERSION = (2, 6, 3)
|
||||
VERSION = (2, 6, "4.dev0")
|
||||
__version__ = ".".join([str(s) for s in VERSION])
|
||||
|
||||
__title__ = "platformio"
|
||||
|
@ -364,11 +364,17 @@ def test_scons():
|
||||
|
||||
|
||||
def install_scons():
|
||||
r = exec_command(["pip", "install", "-U", "scons"])
|
||||
if r['returncode'] != 0:
|
||||
r = exec_command(["pip", "install", "--egg", "scons",
|
||||
'--install-option="--no-install-man"'])
|
||||
return r['returncode'] == 0
|
||||
cmds = (
|
||||
["pip", "install", "-U", "scons"],
|
||||
["pip", "install", "--egg", "scons",
|
||||
'--install-option="--no-install-man"'],
|
||||
["easy_install", "scons"]
|
||||
)
|
||||
for cmd in cmds:
|
||||
r = exec_command(cmd)
|
||||
if r['returncode'] == 0:
|
||||
return True
|
||||
return False
|
||||
|
||||
|
||||
def scons_in_pip():
|
||||
|
Reference in New Issue
Block a user