From 8049d4b93f35245d077e0580b5524395a10a60df Mon Sep 17 00:00:00 2001 From: karpov-sv Date: Fri, 3 Jun 2022 01:07:23 +0200 Subject: [PATCH] A bit hacky way of forcing numpy to be installed prior to main body of setup.py so that it may use numpy.get_include() --- setup.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/setup.py b/setup.py index 35f9312..726bc54 100644 --- a/setup.py +++ b/setup.py @@ -7,6 +7,10 @@ import subprocess import shutil +# A bit hacky way to have numpy installed before continuing the script +from setuptools import dist +dist.Distribution().fetch_build_eggs(['numpy']) + from setuptools import setup, Extension from setuptools.command.build_ext import build_ext