Explorar o código

makepanda: discourage targeting macOS older than 10.9 (as per #300)

rdb %!s(int64=6) %!d(string=hai) anos
pai
achega
77eeed6a82
Modificáronse 1 ficheiros con 9 adicións e 0 borrados
  1. 9 0
      makepanda/makepanda.py

+ 9 - 0
makepanda/makepanda.py

@@ -273,6 +273,13 @@ def parseopts(args):
             assert OSXTARGET[0] == 10
         except:
             usage("Invalid setting for OSXTARGET")
+
+        if OSXTARGET < (10, 9):
+            print("=========================================================================")
+            print("WARNING: Support for macOS versions before 10.9 has been discontinued.")
+            print("WARNING: For more information, or any questions, please visit:")
+            print("  https://github.com/panda3d/panda3d/issues/300")
+            print("=========================================================================")
     else:
         OSXTARGET = None
 
@@ -378,6 +385,8 @@ elif target == 'darwin':
     else:
         maj, min = platform.mac_ver()[0].split('.')[:2]
         osxver = int(maj), int(min)
+        if osxver < (10, 9):
+            osxver = (10, 9)
 
     arch_tag = GetTargetArch()
     PLATFORM = 'macosx-{0}.{1}-{2}'.format(osxver[0], osxver[1], arch_tag)