--- bindings/python/setup.py.orig	2016-04-10 17:46:51.000000000 -0700
+++ bindings/python/setup.py	2016-04-15 13:53:34.000000000 -0700
@@ -32,8 +32,7 @@
 
 def arch():
 	if platform.system() != 'Darwin': return []
-	a = os.uname()[4]
-	if a == 'Power Macintosh': a = 'ppc'
+	a = '__MP_BUILD_ARCH__'
 	return ['-arch', a]
 
 def target_specific():
@@ -43,7 +42,7 @@
 	# on mavericks, clang will fail when unknown arguments are
 	# passed in. python distutils will pass in arguments it doesn't
 	# know about
-	return ['-Wno-error=unused-command-line-argument-hard-error-in-future']
+	return []
 
 try:
 	with open('compile_flags') as _file:
@@ -149,8 +148,8 @@
 			language='c++',
 			include_dirs = flags.include_dirs,
 			library_dirs = flags.library_dirs,
-			extra_link_args = extra_link + arch(),
-			extra_compile_args = extra_compile + arch() + target_specific(),
+			extra_link_args = extra_link,
+			extra_compile_args = extra_compile + target_specific(),
 			libraries = ['torrent-rasterbar'] + flags.libraries)]
 
 setup(name = 'python-libtorrent',