File: rm-setuptools-dep.patch

package info (click to toggle)
brian 2.8.0.4-1
  • links: PTS, VCS
  • area: main
  • in suites: trixie
  • size: 6,872 kB
  • sloc: python: 51,548; cpp: 2,011; makefile: 116; sh: 64
file content (37 lines) | stat: -rw-r--r-- 1,236 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
25
26
27
28
29
30
31
32
33
34
35
36
37
Description: Remove setuptools from runtime dependencies.
 setuptools causes dh-python to make the resulting binary package depend
 on python3-pkg-resources, which is obsolete.  setuptools has only one
 occurrences in upstream source code with regards to support Microsoft
 platforms.  As such this makes the patch only suitable for a Debian
 environment.

Author: Étienne Mollier <emollier@debian.org>
Bug-Debian: https://bugs.debian.org/1083322
Forwarded: not-needed
Last-Update: 2024-10-09
---
This patch header follows DEP-3: http://dep.debian.net/deps/dep3/
--- brian.orig/pyproject.toml
+++ brian/pyproject.toml
@@ -13,7 +13,6 @@
     'pyparsing',
     'jinja2>=2.7',
     'py-cpuinfo;platform_system=="Windows"',
-    'setuptools>=61',
     'packaging',
 ]
 dynamic = ["version", "readme"]
--- brian.orig/brian2/codegen/cpp_prefs.py
+++ brian/brian2/codegen/cpp_prefs.py
@@ -18,11 +18,6 @@
 import sys
 import tempfile
 
-try:
-    from setuptools.msvc import msvc14_get_vc_env as _get_vc_env
-except ImportError:  # Setuptools 0.74.0 removed this function
-    from distutils._msvccompiler import _get_vc_env
-
 from distutils.ccompiler import get_default_compiler
 
 from brian2.core.preferences import BrianPreference, prefs