diff options
author | Federico Caselli <cfederico87@gmail.com> | 2023-03-15 21:49:13 +0100 |
---|---|---|
committer | Mike Bayer <mike_mp@zzzcomputing.com> | 2023-03-17 09:43:57 -0400 |
commit | 1a5f0c0be11fa30296f20a1742807a57e2ff5459 (patch) | |
tree | 46de8b365636d23c408d349cc2931d3bf62a568f /lib/sqlalchemy/util/_has_cy.py | |
parent | e8baf5aa010ce7e3dea9b0ccf5e8b0b90f4310ad (diff) | |
download | sqlalchemy-1a5f0c0be11fa30296f20a1742807a57e2ff5459.tar.gz |
Improved wheel pipeline
- ensure that the compiled extensions are used
- speed up job by parallelizing more
Fixes: #9434
Change-Id: Ief750b28733ba24bb5ff8c105e1a4c9b7b928700
Diffstat (limited to 'lib/sqlalchemy/util/_has_cy.py')
-rw-r--r-- | lib/sqlalchemy/util/_has_cy.py | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/lib/sqlalchemy/util/_has_cy.py b/lib/sqlalchemy/util/_has_cy.py index 1fe8cbe6a..37f716ad3 100644 --- a/lib/sqlalchemy/util/_has_cy.py +++ b/lib/sqlalchemy/util/_has_cy.py @@ -21,15 +21,19 @@ def _import_cy_extensions(): return (collections, immutabledict, processors, resultproxy, util) +_CYEXTENSION_MSG: str if not typing.TYPE_CHECKING: if os.environ.get("DISABLE_SQLALCHEMY_CEXT_RUNTIME"): HAS_CYEXTENSION = False + _CYEXTENSION_MSG = "DISABLE_SQLALCHEMY_CEXT_RUNTIME is set" else: try: _import_cy_extensions() - except ImportError: + except ImportError as err: HAS_CYEXTENSION = False + _CYEXTENSION_MSG = str(err) else: + _CYEXTENSION_MSG = "Loaded" HAS_CYEXTENSION = True else: HAS_CYEXTENSION = False |