File: reorder-setuptools-import.patch

package info (click to toggle)
numba 0.56.4%2Bdfsg-2
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 23,672 kB
  • sloc: python: 183,651; ansic: 15,370; cpp: 2,259; javascript: 424; sh: 308; makefile: 174
file content (23 lines) | stat: -rw-r--r-- 727 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
Author: Diane Trout <diane@ghic.org>
Subject: Setup.py build_ext failed, but earlier on there was an warning message
 about distutils being imported before setuptools, but setuptools replaces parts of
 distutils and undesierable behavior may occur.
 Changing the order did fix my problem with running the build_ext step.

--- a/setup.py
+++ b/setup.py
@@ -1,12 +1,13 @@
 import os
 import platform
 import sys
+from setuptools import Extension, find_packages, setup
+
 from distutils import sysconfig
 from distutils.command import build
 from distutils.command.build_ext import build_ext
 from distutils.spawn import spawn
 
-from setuptools import Extension, find_packages, setup
 import versioneer
 
 _version_module = None