Compatibility with pyinstaller (#2537)

it doesn't like relative imports and not recognise `http.server` imported with `six`.
The last one is explicitly added to the list of `hiddenimports()` and will break compatibility with python 2.7, which support will be dropped in the next Patroni release anyway.

Close https://github.com/zalando/patroni/issues/2535
This commit is contained in:
Alexander Kukushkin
2023-01-26 16:35:30 +01:00
committed by GitHub
parent 79458688d1
commit 0273eac15e
3 changed files with 12 additions and 12 deletions
+1 -1
View File
@@ -8,7 +8,7 @@ def hiddenimports():
sys.path.insert(0, '.')
try:
import patroni.dcs
return patroni.dcs.dcs_modules()
return patroni.dcs.dcs_modules() + ['http.server']
finally:
sys.path.pop(0)