+ # remove any flags for universal binaries, we'll get those from
+ # distutils instead
+ return [flag for flag in newLFLAGS
+ if flag not in ['-isysroot', '-arch', 'ppc', 'i386'] and
+ not flag.startswith('/Developer') ]
+
+
+
+def getExtraPath(shortVer=True, addOpts=False):
+ """Get the dirname that wxPython will be installed under."""
+
+ if shortVer:
+ # short version, just Major.Minor
+ ep = "wx-%d.%d" % (VER_MAJOR, VER_MINOR)
+
+ # plus release if minor is odd
+ if VER_MINOR % 2 == 1:
+ ep += ".%d" % VER_RELEASE
+
+ ##ep = "wx-%d.%d.%d" % (VER_MAJOR, VER_MINOR, VER_RELEASE)
+
+ else:
+ # long version, full version
+ ep = "wx-%d.%d.%d.%d" % (VER_MAJOR, VER_MINOR, VER_RELEASE, VER_SUBREL)
+
+ if addOpts:
+ port = WXPORT
+ if port == "msw": port = "win32"
+ ep += "-%s-%s" % (WXPORT, (UNICODE and 'unicode' or 'ansi'))
+
+ if FLAVOUR:
+ ep += "-" + FLAVOUR
+
+ return ep