psycopg-binary 3.3.6__cp315-cp315-win_amd64.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,26 @@
1
+ """
2
+ psycopg -- PostgreSQL database adapter for Python -- C optimization package
3
+ """
4
+
5
+
6
+ # start delvewheel patch
7
+ def _delvewheel_patch_1_13_0():
8
+ import os
9
+ if os.path.isdir(libs_dir := os.path.abspath(os.path.join(os.path.dirname(__file__), os.pardir, 'psycopg_binary.libs'))):
10
+ os.add_dll_directory(libs_dir)
11
+
12
+
13
+ _delvewheel_patch_1_13_0()
14
+ del _delvewheel_patch_1_13_0
15
+ # end delvewheel patch
16
+
17
+ # Copyright (C) 2020 The Psycopg Team
18
+
19
+ import sys
20
+
21
+ # This package shouldn't be imported before psycopg itself, or weird things
22
+ # will happen
23
+ if "psycopg" not in sys.modules:
24
+ raise ImportError("the psycopg package should be imported before psycopg_binary")
25
+
26
+ from .version import __version__ as __version__ # noqa