File: py312-setuptools.patch

package info (click to toggle)
pycxx 7.1.8-4
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 1,392 kB
  • sloc: cpp: 6,767; python: 1,138; sh: 85; ansic: 60; makefile: 18
file content (25 lines) | stat: -rw-r--r-- 748 bytes parent folder | download | duplicates (2)
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: Stefano Rivera <stefanor@debian.org>
Date: Wed, 13 Nov 2024 14:32:44 +0100
Subject: Use setuptools in demo

distutils was removed in Python 3.12

Forwarded: https://sourceforge.net/p/cxx/patches/31/
Bug-Debian: https://bugs.debian.org/1059635
---
 Demo/Python3/setup.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/Demo/Python3/setup.py b/Demo/Python3/setup.py
index c42f853..ec40b26 100644
--- a/Demo/Python3/setup.py
+++ b/Demo/Python3/setup.py
@@ -36,7 +36,7 @@
 #-----------------------------------------------------------------------------
 
 import os, sys
-from distutils.core import setup, Extension
+from setuptools import setup, Extension
 
 support_dir = os.path.normpath(
                     os.path.join(