public
Last active

  • Download Gist
gistfile1.diff
Diff
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20
commit 7b9ca657e2ffb6ef959a07e6718374da49dc8a07
Author: Alex Morega <alex@grep.ro>
Date: Mon Nov 5 18:00:32 2012 +0200
 
install data files in purelib
 
diff --git a/setup.py b/setup.py
index 333d57a..91d88c3 100644
--- a/setup.py
+++ b/setup.py
@@ -33,7 +33,8 @@ class osx_install_data(install_data):
self.set_undefined_options('install', ('install_lib', 'install_dir'))
install_data.finalize_options(self)
-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}
else:
cmdclasses = {'install_data': install_data}

Please sign in to comment on this gist.

Something went wrong with that request. Please try again.