Bug 1275437 - Bootstrapper now recognizes msys version of Python. r?gps
Before, the bootstrapper would only know it was being run on Windows if it was run with the official Windows version of Python or the mingw version of Python.
MozReview-Commit-ID: JK5Q4ERBdWs
--- a/python/mozboot/mozboot/bootstrap.py
+++ b/python/mozboot/mozboot/bootstrap.py
@@ -135,20 +135,19 @@ class Bootstrapper(object):
args['version'] = platform.uname()[2]
elif sys.platform.startswith('dragonfly') or \
sys.platform.startswith('freebsd'):
cls = FreeBSDBootstrapper
args['version'] = platform.release()
args['flavor'] = platform.system()
- elif sys.platform.startswith('win32'):
- # TODO: Check to see if platform is actually msys2 or not.
+ elif sys.platform.startswith('win32') or sys.platform.starswith('msys'):
cls = WindowsBootstrapper
-
+
if cls is None:
raise NotImplementedError('Bootstrap support is not yet available '
'for your OS.')
self.instance = cls(**args)
def bootstrap(self):
if self.choice is None: