summaryrefslogtreecommitdiff
path: root/setup
diff options
context:
space:
mode:
authorMartin Trigaux <mat@odoo.com>2019-11-14 10:12:22 +0000
committerChristophe Monniez <moc@odoo.com>2020-01-22 14:09:46 +0000
commit9aef423d4da93af97385e2bce8140ed789a00679 (patch)
tree801eaa280738cbbe1bab43c3f94e2b6fc9f32681 /setup
parentb980086d275fcb21a1233f5c9f8eb52238198b59 (diff)
[FIX] auth_ldap: replace the deprecated library by one up to date
At 795c7b0a9415d04 the external dependencies was changed from trying to import 'ldap' to checking than 'pyldap' package was installed. The problem is that pyldap is a unmaintained library that should no longer be used, as explained on the package page: https://pypi.org/project/pyldap/ "The pyldap fork was merged back into python-ldap, and released as python-ldap 3.0.0." Having pyldap version >= 3.0 installs python-ldap automatically and will not cause any issue. The Debian control file package name is adapted to use the latest. The "ldap" externalm dependency defined in __manifest__.py will cause pkg_resources.get_distribution() to fail in both case ("python-lap" or "pyldap"), but the "import" fallback will succeed. For that reason, the log warning is turned into a log info. closes odoo/odoo#43769 Note: This library should be replaced by the pure python "ldap3" library. X-original-commit: 1afd0ccf20881ba97e3c07dffb33e9a3a0b2cda4 Signed-off-by: Christophe Monniez (moc) <moc@odoo.com>
Diffstat (limited to 'setup')
-rw-r--r--setup/win32/winpy_requirements.txt1
1 files changed, 0 insertions, 1 deletions
diff --git a/setup/win32/winpy_requirements.txt b/setup/win32/winpy_requirements.txt
index ad7081536b4..cfeece68d92 100644
--- a/setup/win32/winpy_requirements.txt
+++ b/setup/win32/winpy_requirements.txt
@@ -19,7 +19,6 @@ polib>=1.1.0
psutil>=4.3.1
psycopg2==2.7.1
pydot==1.2.3
-pyldap>=2.4.28
pyparsing==2.1.10
PyPDF2==1.26.0
pyserial==3.1.1