From 3972ce4543d8691f9a2a0e0507e9af9edee1ae27 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sybren=20A=2E=20St=C3=BCvel?= Date: Thu, 15 Nov 2018 17:47:33 +0100 Subject: [PATCH] Write wheel files to correct dir in the bdist archive They were ending up in a `local` directory next to the `blender_cloud` directory. Probably something to do with newer setuptools? Had the same issue in the Blender ID add-on. --- setup.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/setup.py b/setup.py index ac346a8..7f8f484 100755 --- a/setup.py +++ b/setup.py @@ -28,7 +28,7 @@ import zipfile from distutils import log from distutils.core import Command from distutils.command.bdist import bdist -from distutils.command.install import install +from distutils.command.install import install, INSTALL_SCHEMES from distutils.command.install_egg_info import install_egg_info from setuptools import setup, find_packages @@ -165,6 +165,7 @@ 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' def run(self): self.run_command('wheels')