Skip to content

Instantly share code, notes, and snippets.

@knocte
Created June 12, 2015 16:34
Show Gist options
  • Select an option

  • Save knocte/490ff40dd93b1ac68704 to your computer and use it in GitHub Desktop.

Select an option

Save knocte/490ff40dd93b1ac68704 to your computer and use it in GitHub Desktop.
MacBook-Pro-de-Jose:banshee joseantoniomunozmoreno$ ./darwin.py -bvd
Traceback (most recent call last):
File "./darwin.py", line 75, in <module>
BansheeDarwinProfile ().build ()
File "./darwin.py", line 13, in __init__
DarwinProfile.__init__ (self, min_version = 9)
File "../../bockbuild/darwinprofile.py", line 37, in __init__
os.environ ['MACOSX_DEPLOYMENT_TARGET'] = min_version
File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/os.py", line 471, in __setitem__
putenv(key, item)
TypeError: must be string, not int
MacBook-Pro-de-Jose:banshee joseantoniomunozmoreno$ nano ../../bockbuild/darwinprofile.py
MacBook-Pro-de-Jose:banshee joseantoniomunozmoreno$ git diff
diff --git a/bockbuild/darwinprofile.py b/bockbuild/darwinprofile.py
index 2435452..f34d218 100644
--- a/bockbuild/darwinprofile.py
+++ b/bockbuild/darwinprofile.py
@@ -34,7 +34,7 @@ class DarwinProfile (UnixProfile):
if min_version:
self.gcc_flags.extend (['-mmacosx-version-min=%s' % min_version])
- os.environ ['MACOSX_DEPLOYMENT_TARGET'] = min_version
+ os.environ ['MACOSX_DEPLOYMENT_TARGET'] = str (min_version)
self.gcc_debug_flags = [ '-O0', '-ggdb3' ]
diff --git a/profiles/banshee/darwin.py b/profiles/banshee/darwin.py
index 471b395..d2d7663 100755
--- a/profiles/banshee/darwin.py
+++ b/profiles/banshee/darwin.py
@@ -10,7 +10,7 @@ from packages import BansheePackages
class BansheeDarwinProfile (DarwinProfile, BansheePackages):
def __init__ (self):
- DarwinProfile.__init__ (self)
+ DarwinProfile.__init__ (self, min_version = 9)
BansheePackages.__init__ (self)
self_dir = os.path.realpath (os.path.dirname (sys.argv[0]))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment