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:
parent
d75a055149
commit
3972ce4543
3
setup.py
3
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')
|
||||
|
Reference in New Issue
Block a user