File: remove_distutils.diff

package info (click to toggle)
python-lap 0.5.12-1
  • links: PTS, VCS
  • area: main
  • in suites:
  • size: 1,684 kB
  • sloc: python: 1,408; cpp: 872; sh: 17; makefile: 3
file content (23 lines) | stat: -rw-r--r-- 647 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
Description: Replace distutils with setuptools
Author: Pieter Lenaerts <plenae@disroot.org>
Forwarded: https://github.com/gatagat/lap/pull/67
Last-Update: 2025-08-20
---
This patch header follows DEP-3: http://dep.debian.net/deps/dep3/
--- a/setup.py
+++ b/setup.py
@@ -1,4 +1,4 @@
-import distutils.cmd
+from setuptools import Command
 from setuptools import Extension, setup
 
 LICENSE = "BSD-2-Clause"
@@ -37,7 +37,7 @@
     else:
         return cpp_file
 
-class ExportCythonCommand(distutils.cmd.Command):
+class ExportCythonCommand(Command):
     description = "Export _lapjv binary from source."
     def run(self):
         super().run()