diff options
| author | David Naylor <dbn@FreeBSD.org> | 2014-12-07 18:58:05 +0000 |
|---|---|---|
| committer | David Naylor <dbn@FreeBSD.org> | 2014-12-07 18:58:05 +0000 |
| commit | 55bee34488ae51d0c34ff5656745c118ef2bf9c5 (patch) | |
| tree | c516b6e849a7411b6a3dddb18e0a1d27a1b21c9e /lang/pypy3-devel/files/patch-lib_pypy___sqlite3.py | |
| parent | - Remove vestiges of cvs annotate support (diff) | |
Update lang/pypy3-devel to 2.4.0.
Changes:
* Carry across _sqlite.py fix from lang/pypy
* Strip cffi shared libraries (from lang/pypy)
Change Log:
- Various fsencode PEP 383 related fixes to the posix module (readlink, uname,
ttyname and ctermid) and improved locale handling
- Fixed a couple different crashes related to parsing Python 3 source code
- internal refactoring in string and GIL handling which led to significant
speedups
- improved handling of multiple objects (like sockets) in long-running
programs. They are collected and released more efficiently, reducing memory
use. In simpler terms - we closed what looked like a memory leak
Diffstat (limited to 'lang/pypy3-devel/files/patch-lib_pypy___sqlite3.py')
| -rw-r--r-- | lang/pypy3-devel/files/patch-lib_pypy___sqlite3.py | 28 |
1 files changed, 18 insertions, 10 deletions
diff --git a/lang/pypy3-devel/files/patch-lib_pypy___sqlite3.py b/lang/pypy3-devel/files/patch-lib_pypy___sqlite3.py index 6cb5a0c53265..5a8650d0f7b6 100644 --- a/lang/pypy3-devel/files/patch-lib_pypy___sqlite3.py +++ b/lang/pypy3-devel/files/patch-lib_pypy___sqlite3.py @@ -1,11 +1,19 @@ ---- lib_pypy/_sqlite3.py.orig 2013-05-18 16:20:00.000000000 +0200 -+++ lib_pypy/_sqlite3.py 2013-05-18 16:21:06.000000000 +0200 -@@ -270,7 +270,7 @@ +--- lib_pypy/_sqlite3.py.bak 2013-12-15 23:45:52.000000000 +0200 ++++ lib_pypy/_sqlite3.py 2013-12-16 12:07:57.000000000 +0200 +@@ -269,11 +269,14 @@ + _ffi.cdef("int sqlite3_enable_load_extension(sqlite3 *db, int onoff);") - _lib = _ffi.verify(""" - #include <sqlite3.h> --""", libraries=['sqlite3'] -+""", libraries=['sqlite3'], include_dirs=['/usr/local/include'], library_dirs=['/usr/local/lib'] - ) - - exported_sqlite_symbols = [ + if sys.platform.startswith('freebsd'): ++ import os ++ import os.path ++ _localbase = os.environ.get('LOCALBASE', '/usr/local') + _lib = _ffi.verify(""" + #include <sqlite3.h> + """, libraries=['sqlite3'], +- include_dirs=['/usr/local/include'], +- library_dirs=['/usr/local/lib'] ++ include_dirs=[os.path.join(_localbase, 'include')], ++ library_dirs=[os.path.join(_localbase, 'lib')] + ) + else: + _lib = _ffi.verify(""" |
