Created
November 5, 2012 16:09
-
-
Save mgax/4018017 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment