mirror of
https://github.com/platformio/platformio-core.git
synced 2025-07-29 17:47:14 +02:00
Disable Cygwin support
This commit is contained in:
@ -7,7 +7,6 @@ PlatformIO 2.0
|
||||
2.3.2 (2015-09-??)
|
||||
~~~~~~~~~~~~~~~~~~
|
||||
|
||||
* Allowed PlatformIO to be run within Cygwin environment
|
||||
* Allowed to use ST-Link uploader for mbed-based projects
|
||||
* Explained how to use ``lib`` directory from the PlatformIO based project in
|
||||
``readme.txt`` which will be automatically generated using
|
||||
|
@ -1,7 +1,7 @@
|
||||
# Copyright (C) Ivan Kravets <me@ikravets.com>
|
||||
# See LICENSE for details.
|
||||
|
||||
VERSION = (2, 3, "2.dev3")
|
||||
VERSION = (2, 3, "2.dev4")
|
||||
__version__ = ".".join([str(s) for s in VERSION])
|
||||
|
||||
__title__ = "platformio"
|
||||
|
@ -196,3 +196,11 @@ class PlatformioUpgradeError(PlatformioException):
|
||||
"2. Try different installation/upgrading steps: "
|
||||
"http://docs.platformio.org/en/latest/installation.html"
|
||||
)
|
||||
|
||||
|
||||
class CygwinEnvDetected(PlatformioException):
|
||||
|
||||
MESSAGE = (
|
||||
"PlatformIO does not work within Cygwin environment. "
|
||||
"Use native Terminal instead."
|
||||
)
|
||||
|
@ -116,13 +116,8 @@ def get_systype():
|
||||
type_ = data[0].lower()
|
||||
arch = data[4].lower() if data[4] else ""
|
||||
|
||||
# use native Windows binaries for Cygwin
|
||||
if "cygwin" in type_:
|
||||
if arch == "i686":
|
||||
arch = "x86"
|
||||
elif arch == "x86_64":
|
||||
arch = "amd64"
|
||||
type_ = "windows"
|
||||
raise exception.CygwinEnvDetected()
|
||||
|
||||
return "%s_%s" % (type_, arch) if arch else type_
|
||||
|
||||
|
Reference in New Issue
Block a user