From: Stefano Rivera <stefanor@debian.org>
Date: Sat, 5 Nov 2022 17:20:25 +0200
Subject: Import setuptools before Cython.Distutils

setuptools bundles its own distutils, and installs them in sys.path on
import. So import it before anything else that looks for distutils.

This allows feather to work with setuptools >= 60.

Bug-Debian: https://bugs.debian.org/1022475
Forwarded: not-needed, upstream has become a wrapper around pyarrow
---
 setup.py | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/setup.py b/setup.py
index c577ddf..5e9d2b2 100644
--- a/setup.py
+++ b/setup.py
@@ -16,6 +16,8 @@
 
 # Bits here from Apache Kudu (incubating), ASL 2.0
 
+from setuptools import setup
+
 from Cython.Distutils import build_ext
 from Cython.Build import cythonize
 import Cython
@@ -23,7 +25,6 @@ import Cython
 import numpy as np
 
 import sys
-from setuptools import setup
 from distutils.command.clean import clean as _clean
 from distutils.extension import Extension
 import os
