about summary refs log tree commit diff
path: root/nixpkgs/pkgs/development/libraries/spdk/setuptools.patch
blob: b3e7644c0076bc664081ef22833df776f82a1a3e (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
From 3a72290ba7e2d71ca887225fc0eb8792ca863be2 Mon Sep 17 00:00:00 2001
From: Jörg Thalheim <joerg@thalheim.io>
Date: Tue, 24 Oct 2023 14:30:53 +0200
Subject: [PATCH] python: drop deprecated distutils

This is scheduled for removal in python 3.12: https://docs.python.org/3/whatsnew/3.12.html

Change-Id: I728dc0cf4ed20f22016d3d58cca8aee3af2bcd8b
Signed-off-by: Jörg Thalheim <joerg@thalheim.io>
---

diff --git a/python/setup.py b/python/setup.py
index 47e2104..ae4dff7 100755
--- a/python/setup.py
+++ b/python/setup.py
@@ -2,8 +2,7 @@
 # SPDX-License-Identifier: BSD-3-Clause
 # Copyright (C) 2023 Intel Corporation.  All rights reserved.
 
-from distutils.core import setup
-from setuptools import find_packages
+from setuptools import setup, find_packages
 from spdk import __version__