From b024d42625ed7d58a3edca7aa9426f5758ca6a6a Mon Sep 17 00:00:00 2001 From: Jeremy Howard Date: Fri, 24 Jul 2026 16:59:25 +1000 Subject: [PATCH] Install the bundled library into platlib --- setup.py | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/setup.py b/setup.py index 9434f5c..09cdf4f 100644 --- a/setup.py +++ b/setup.py @@ -1,13 +1,12 @@ import subprocess,sys from pathlib import Path -from setuptools import setup +from setuptools import Distribution,setup from setuptools.command.bdist_wheel import bdist_wheel as _bdist_wheel -class BinaryWheel(_bdist_wheel): - def finalize_options(self): - super().finalize_options() - self.root_is_pure = False +class BinaryDistribution(Distribution): + def has_ext_modules(self): return True +class BinaryWheel(_bdist_wheel): def get_tag(self): _,_,plat = super().get_tag() return 'py3','none',plat @@ -16,4 +15,4 @@ def run(self): subprocess.run([sys.executable, str(Path(__file__).with_name('build_lib.py'))], check=True) super().run() -setup(cmdclass={'bdist_wheel': BinaryWheel}) +setup(cmdclass={'bdist_wheel': BinaryWheel}, distclass=BinaryDistribution)