Skip to content
Create a gist now

Instantly share code, notes, and snippets.

commit 7b9ca657e2ffb6ef959a07e6718374da49dc8a07
Author: Alex Morega <>
Date: Mon Nov 5 18:00:32 2012 +0200
install data files in purelib
diff --git a/ b/
index 333d57a..91d88c3 100644
--- a/
+++ b/
@@ -33,7 +33,8 @@ class osx_install_data(install_data):
self.set_undefined_options('install', ('install_lib', 'install_dir'))
-if sys.platform == "darwin":
+if (sys.platform == "darwin" or
+ (len(sys.argv) > 1 and sys.argv[1] == 'bdist_wheel')):
cmdclasses = {'install_data': osx_install_data}
cmdclasses = {'install_data': install_data}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.