Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
P
python-ldap3
Manage
Activity
Members
Labels
Plan
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Debian Python Team
packages
python-ldap3
Commits
3edad31a
Commit
3edad31a
authored
2 years ago
by
Stefano Rivera
Browse files
Options
Downloads
Patches
Plain Diff
Patch: Support setuptools >= 60. (Closes: #1022446)
parent
4d27837b
No related branches found
No related tags found
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
debian/changelog
+6
-0
6 additions, 0 deletions
debian/changelog
debian/patches/series
+1
-0
1 addition, 0 deletions
debian/patches/series
debian/patches/setuptools-60
+33
-0
33 additions, 0 deletions
debian/patches/setuptools-60
with
40 additions
and
0 deletions
debian/changelog
+
6
−
0
View file @
3edad31a
python-ldap3 (2.9.1-2) UNRELEASED; urgency=medium
* Patch: Support setuptools >= 60. (Closes: #1022446)
-- Stefano Rivera <stefanor@debian.org> Fri, 11 Nov 2022 23:12:19 +0200
python-ldap3 (2.9.1-1) unstable; urgency=low
* Team upload.
...
...
This diff is collapsed.
Click to expand it.
debian/patches/series
0 → 100644
+
1
−
0
View file @
3edad31a
setuptools-60
This diff is collapsed.
Click to expand it.
debian/patches/setuptools-60
0 → 100644
+
33
−
0
View file @
3edad31a
From: Stefano Rivera <stefanor@debian.org>
Date: Fri, 11 Nov 2022 23:11:16 +0200
Subject: Import setuptools before distutils
setuptools 60 uses its own bunlded version of distutils, by default. It
injects this into sys.modules, at import time. So we need to make sure
that it is imported, before anything else imports distutils, to ensure
everything is using the same distutils version.
This change in setuptools is to prepare for Python 3.12, which will drop
distutils.
Forwarded: https://github.com/cannatag/ldap3/pull/1066
Bug-Debian: https://bugs.debian.org/1022446
---
setup.py | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/setup.py b/setup.py
index df99a8a..238d641 100644
--- a/setup.py
+++ b/setup.py
@@ -26,9 +26,9 @@
import os
import glob
import shutil
from json import load
+from setuptools import setup
from distutils.command.clean import clean
from distutils import log
-from setuptools import setup
version_dict = load(open('_version.json', 'r'))
version = str(version_dict['version'])
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment