From 9a96faabef18e4d51b1480c4dd7b3006cba580b8 Mon Sep 17 00:00:00 2001 From: eddiebergman Date: Thu, 9 Jun 2022 14:26:27 +0200 Subject: [PATCH] Fix import order for setup.py --- pyrfr/setup.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/pyrfr/setup.py b/pyrfr/setup.py index b71472d..90b8cfd 100644 --- a/pyrfr/setup.py +++ b/pyrfr/setup.py @@ -1,8 +1,11 @@ +# Setuptools must go above distutils +# https://stackoverflow.com/a/53356077/5332072 +from setuptools.command.install import install + import distutils.command.install as orig from distutils.command.build import build from distutils.core import Extension, setup -from setuptools.command.install import install # Customize installation according to https://stackoverflow.com/a/21236111 @@ -42,6 +45,7 @@ def run(self): ), ] +print(extensions) setup( name="pyrfr",