feat: add comprehensive GitHub workflow and development tools
This commit is contained in:
27
app/.venv/Lib/site-packages/psycopg_binary/__init__.py
Normal file
27
app/.venv/Lib/site-packages/psycopg_binary/__init__.py
Normal file
@@ -0,0 +1,27 @@
|
||||
"""
|
||||
psycopg -- PostgreSQL database adapter for Python -- C optimization package
|
||||
"""
|
||||
|
||||
|
||||
# start delvewheel patch
|
||||
def _delvewheel_patch_1_7_0():
|
||||
import os
|
||||
libs_dir = os.path.abspath(os.path.join(os.path.dirname(__file__), os.pardir, 'psycopg_binary.libs'))
|
||||
if os.path.isdir(libs_dir):
|
||||
os.add_dll_directory(libs_dir)
|
||||
|
||||
|
||||
_delvewheel_patch_1_7_0()
|
||||
del _delvewheel_patch_1_7_0
|
||||
# end delvewheel patch
|
||||
|
||||
# Copyright (C) 2020 The Psycopg Team
|
||||
|
||||
import sys
|
||||
|
||||
# This package shouldn't be imported before psycopg itself, or weird things
|
||||
# will happen
|
||||
if "psycopg" not in sys.modules:
|
||||
raise ImportError("the psycopg package should be imported before psycopg_binary")
|
||||
|
||||
from .version import __version__ as __version__ # noqa
|
||||
Reference in New Issue
Block a user