From d8c5c4eecd7a085969de1fdcaf1b1ced0f0262ad Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sybren=20A=2E=20St=C3=BCvel?= Date: Fri, 16 Nov 2018 12:20:09 +0100 Subject: [PATCH] Cross-platformified my setup.py 'local' hack --- setup.py | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/setup.py b/setup.py index 7f8f484..1094ddf 100755 --- a/setup.py +++ b/setup.py @@ -165,7 +165,14 @@ class BlenderAddonBdist(bdist): super().initialize_options() self.formats = ['zip'] self.plat_name = 'addon' # use this instead of 'linux-x86_64' or similar. - INSTALL_SCHEMES['unix_local']['data'] = '$base' + self.fix_local_prefix() + + def fix_local_prefix(self): + """Place data files in blender_cloud instead of local/blender_cloud.""" + for key in INSTALL_SCHEMES: + if 'data' not in INSTALL_SCHEMES[key]: + continue + INSTALL_SCHEMES[key]['data'] = '$base' def run(self): self.run_command('wheels')