Skip to content

Commit

Permalink
hooks: Add "sqlalchemy.ext.baked" to sqlalchemy hook.
Browse files Browse the repository at this point in the history
For issue #5106, added "sqlalchemy.ext.baked" to the hidden imports
list of sqlalchemy hook file hook-sqlalchemy.py. This is because it was
missing.
  • Loading branch information
Riz committed Aug 30, 2020
1 parent 0a59d8c commit 0afb7d1
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
3 changes: 3 additions & 0 deletions PyInstaller/hooks/hook-sqlalchemy.py
Expand Up @@ -24,6 +24,9 @@
# are not. We should explicitly include database backends.
hiddenimports = ['pysqlite2', 'MySQLdb', 'psycopg2']

# add sqlalchemy.ext.baked to hidden imports
hiddenimports.append("sqlalchemy.ext.baked")

# In SQLAlchemy >= 0.6, the "sqlalchemy.dialects" package provides dialects.
if is_module_satisfies('sqlalchemy >= 0.6'):
dialects = exec_statement("import sqlalchemy.dialects;print(sqlalchemy.dialects.__all__)")
Expand Down
1 change: 1 addition & 0 deletions news/5128.update.rst
@@ -0,0 +1 @@
Updated a hook for sqlalchemy, by adding a hidden import.

0 comments on commit 0afb7d1

Please sign in to comment.