]> git.ipfire.org Git - thirdparty/sqlalchemy/sqlalchemy.git/commit
Fix cext for Python 2; ensure C extensions build successfully
authorMike Bayer <mike_mp@zzzcomputing.com>
Fri, 3 Jan 2020 17:10:57 +0000 (12:10 -0500)
committerMike Bayer <mike_mp@zzzcomputing.com>
Sat, 4 Jan 2020 05:25:07 +0000 (00:25 -0500)
commita54a0c6ec7aae89003cbb47c79a1850248f57a29
tree19bcbea915d628ad22ba76f1e1b9d3d703f5c079
parent5881fd274015af3de37f2ff0f91ff6a7c61c1540
Fix cext for Python 2; ensure C extensions build successfully

The C extensions have been broken since cc718cccc0bf8a01abdf4068c
however CI did not find this, because the build degraded to
non-C extensions without failing.   Ensure that if cext is set,
there is no fallback to non-cext build if the C extension build
fails.

Repair C related issues introduced in cc718cccc0bf8a01abdf4068c.

As C extensions have been silently failing on 2.7 for some commits,
the callcounts also needed to be adjusted for recent performance-related
changes.  That in turn required a fix to the profiling decorator
to use signature rewriting in order to support py.test's
fixture mechanism under Python 2, usage introduced under profiling
in 89bf6d80a9.

Fixes: #5076
Change-Id: Id968f10c85d6bf489298b1c318a1f869ad3e7d80
lib/sqlalchemy/cextension/resultproxy.c
lib/sqlalchemy/testing/profiling.py
setup.py
test/profiles.txt
tox.ini