File: distutils-to-setuptools.patch

package info (click to toggle)
mgen 5.02.c%2Breally5.1.1%2Bdfsg-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 6,468 kB
  • sloc: cpp: 78,523; ansic: 4,169; python: 1,334; sh: 30; makefile: 18
file content (24 lines) | stat: -rw-r--r-- 824 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
24
Description: Move from deprecated distutils to setuptools
Author: Jochem Kossen <jochem@jkossen.nl>
Forwarded: https://github.com/USNavalResearchLaboratory/mgen/issues/65
Last-Update: 2025-10-01
--- a/protolib/setup.py
+++ b/protolib/setup.py
@@ -4,7 +4,7 @@
 # Example scripts are provided in the "examples" subdirectory.
 
 import platform
-from distutils.core import setup, Extension
+from setuptools import setup, Extension
 
 # This setup.py script assumes that Protolib (libprotokit.a) has already
 # been built and located in "protolib/lib with respect to this script
--- a/setup.py
+++ b/setup.py
@@ -1,5 +1,5 @@
 import platform
-from distutils.core import setup, Extension
+from setuptools import setup, Extension
 
 # Note that the 'mgen' package has a dependency
 # on the Protolib Python 'protokit' package and