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.
This commit is contained in:
Sybren A. Stüvel 2018-11-15 17:47:33 +01:00
parent d75a055149
commit 3972ce4543

View File

@ -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')