depot/third_party/nixpkgs/pkgs/development/libraries/spdk/setuptools.patch
Default email 2c76a4cb41 Project import generated by Copybara.
GitOrigin-RevId: c757e9bd77b16ca2e03c89bf8bc9ecb28e0c06ad
2023-11-16 04:20:00 +00:00

25 lines
796 B
Diff

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__