[issue13501] Make libedit support more generic; port readline / libedit to FreeBSD

2018-10-28 Thread Romain Geissler


Romain Geissler  added the comment:

Yes in my case the build works, but then I have a resulting python interpreter 
with limited readline functionality. That's why I have some interest in having 
this patch rebased and included into trunk.

--

___
Python tracker 
<https://bugs.python.org/issue13501>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue14956] custom PYTHONPATH may break apps embedding Python

2018-10-28 Thread Romain Geissler


Romain Geissler  added the comment:

Hi,

Just updating this 6 year old bug report. The last comment says it's not 
possible to ignore environment when using the C-API. I don't know back then, 
but today it is possible. I have just built gdb 8.2 against python 3.7.1, and 
patched gdb with this simple patch, which apparently works:

--- gdb/python/python.c
+++ gdb/python/python.c
@@ -1726,6 +1726,9 @@
 #endif
 #endif

+  // Force using the toolchain python without being troubled by $PYTHONHOME or 
$PYTHONPATH.
+  Py_IgnoreEnvironmentFlag = 1;
+
   Py_Initialize ();
   PyEval_InitThreads ();

Cheers,
Romain

--
nosy: +RomainGeissler1A

___
Python tracker 
<https://bugs.python.org/issue14956>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue13501] Make libedit support more generic; port readline / libedit to FreeBSD

2018-10-28 Thread Romain Geissler


Romain Geissler  added the comment:

Hi,

Yes this bug report is still valid. I just tried compiling Python 3.7.1 on 
linux with libedit installed (https://thrysoee.dk/editline/) but not 
libreadline, and indeed the configure script fails to detect I have it 
installed and falls back on the python readline emulation.

Note: I am using Linux, not Mac OS.

Cheers,
Romain

--
nosy: +RomainGeissler1A

___
Python tracker 
<https://bugs.python.org/issue13501>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com