Displaying 20 results from an estimated 40 matches for "libpython".
2011 Dec 10
1
[PATCH] Fixed checks for libpython features
...etions(-)
diff --git a/configure.ac b/configure.ac
index 28243a2..c2b684b 100644
--- a/configure.ac
+++ b/configure.ac
@@ -738,19 +738,20 @@ AS_IF([test "x$enable_python" != "xno"],
AC_MSG_RESULT([$PYTHON_INSTALLDIR])
fi
- dnl Look for libpython and some optional symbols in it.
+ dnl Look for some optional symbols in libpython.
old_LIBS="$LIBS"
- if test "x$PYTHON_VERSION_MAJOR" = "x3"; then
- dnl libpython3 is called "libpython3.Xmu.so"
-...
2014 Nov 04
1
Re: [PATCH 7/9] python: fix detection of libpython features
On Tue, Nov 04, 2014 at 04:35:30PM +0100, Pino Toscano wrote:
> Instead of querying distutils.sysconfig for the library name, just use
> the $PYTHON_LIBS returned by pkg-config. This makes sure the tests can
> link even with a libpython in a non-standard library directory.
> ---
> configure.ac | 10 ++--------
> 1 file changed, 2 insertions(+), 8 deletions(-)
>
> diff --git a/configure.ac b/configure.ac
> index 87e066c..1bf291c 100644
> --- a/configure.ac
> +++ b/configure.ac
> @@ -1216,20 +1216,14 @@...
2014 Nov 04
0
[PATCH 7/9] python: fix detection of libpython features
Instead of querying distutils.sysconfig for the library name, just use
the $PYTHON_LIBS returned by pkg-config. This makes sure the tests can
link even with a libpython in a non-standard library directory.
---
configure.ac | 10 ++--------
1 file changed, 2 insertions(+), 8 deletions(-)
diff --git a/configure.ac b/configure.ac
index 87e066c..1bf291c 100644
--- a/configure.ac
+++ b/configure.ac
@@ -1216,20 +1216,14 @@ AS_IF([test "x$enable_python" != &q...
2024 Jul 15
2
reticulate + virtual environments
...ot found. I believe this happens because
reticulate is using r-reticulate instead of mmstat4.hu.data. How can I
force reticulate to use my virtual environment?
Thanks Sigbert
> library("reticulate")
> py_config()
python: /home/sk/.virtualenvs/r-reticulate/bin/python
libpython:
/usr/lib/python3.10/config-3.10-x86_64-linux-gnu/libpython3.10.so
pythonhome:
/home/sk/.virtualenvs/r-reticulate:/home/sk/.virtualenvs/r-reticulate
version: 3.10.12 (main, Mar 22 2024, 16:50:05) [GCC 11.4.0]
numpy:
/home/sk/.virtualenvs/r-reticulate/lib/python3.10/site-packages/numpy...
2019 Dec 02
4
Debian Stretch - > buster: samba packages
On 02/12/2019 10:07, Stefan G. Weichinger via samba wrote:
> Am 02.12.19 um 08:47 schrieb L.P.H. van Belle via samba:
>> Hai,
>>
>> Sorry for the late reply.
> Never mind, weekend is important ...
>
>> Here its just apt-get distupgrade --autoremove --purge
>> Without the autoremove libldb1 is not removed so libldb2 can be installed.
> # apt-get distupgrade
2024 Jul 15
1
reticulate + virtual environments
...ate is using r-reticulate instead of mmstat4.hu.data. How can I
> force reticulate to use my virtual environment?
>
> Thanks Sigbert
>
> > library("reticulate")
>
> > py_config()
>
> python: /home/sk/.virtualenvs/r-reticulate/bin/python
>
> libpython:
> /usr/lib/python3.10/config-3.10-x86_64-linux-gnu/libpython3.10.so
>
> pythonhome:
> /home/sk/.virtualenvs/r-reticulate:/home/sk/.virtualenvs/r-reticulate
>
> version: 3.10.12 (main, Mar 22 2024, 16:50:05) [GCC 11.4.0]
>
> numpy:
> /home/sk/.virtualenvs/r-reticul...
2009 Feb 11
1
RSPython
Hi all,
I try to utilize RSPython to invoke Python from R. For me it works pretty
fine for basic applications, but I have 3 problems that may be related.
(1) I can't load other packages but "standard" ones also when I adjust the
PythonPath:
> importPythonModule('sys', all=T)
NULL
> importPythonModule('numpy', all=T)
Error in
2019 Sep 11
0
[PATCH nbdkit] python: Drop support for Python 2.
...LIBRARY=`$PYTHON -c "import distutils.sysconfig; \
- print (distutils.sysconfig.get_config_var('BLDLIBRARY'))"`
- AC_CHECK_LIB([c],[PyString_FromString],
- [AC_DEFINE([HAVE_PYSTRING_FROMSTRING],1,
- [Found PyString_FromString in libpython.])],
- [],[$PYTHON_BLDLIBRARY])
- AC_CHECK_LIB([c],[PyString_AsString],
- [AC_DEFINE([HAVE_PYSTRING_ASSTRING],1,
- [Found PyString_AsString in libpython.])],
- [],[$PYTHON_BLDLIBRARY])
- AC_CHECK_LIB([c],[PyUnicode_AsU...
2019 Dec 02
0
Debian Stretch - > buster: samba packages
...libcurl3* libdbus-glib-1-2*
libdns162* libenca0* libexempi3* libexif12* libicu57* libiptcdata0*
libirs-export141* libisc160* libisccc-export140* libisccc140*
libisccfg-export140* libisccfg140* libjansson4* libkdb5-8* liblwres141*
libmariadbclient18* libnss-winbind* libpam-winbind* libperl5.24*
libpython3.5* libpython3.5-dev* libpython3.5-minimal*
libpython3.5-stdlib* libsmbclient* libstdc++-6-dev* libstemmer0d*
libtracker-sparql-1.0-0* libunbound2* libuptimed0* libwbclient0*
python-idna*
python-pyasn1* python3-iso8601* python3-ldb* python3-markdown*
python3-pyasn1* python3-samba* python3-talloc*...
2019 Dec 02
0
Debian Stretch - > buster: samba packages
...t; libdns162* libenca0* libexempi3* libexif12* libicu57* libiptcdata0*
> libirs-export141* libisc160* libisccc-export140* libisccc140*
> libisccfg-export140* libisccfg140* libjansson4* libkdb5-8*
> liblwres141*
> libmariadbclient18* libnss-winbind* libpam-winbind* libperl5.24*
> libpython3.5* libpython3.5-dev* libpython3.5-minimal*
> libpython3.5-stdlib* libsmbclient* libstdc++-6-dev* libstemmer0d*
> libtracker-sparql-1.0-0* libunbound2* libuptimed0* libwbclient0*
> python-idna*
> python-pyasn1* python3-iso8601* python3-ldb* python3-markdown*
> python3-pyasn1* pytho...
2018 Apr 05
0
[PATCH nbdkit] python: Turn python exceptions into nbdkit errors properly.
...0644
--- a/configure.ac
+++ b/configure.ac
@@ -270,6 +270,14 @@ AS_IF([test "x$PYTHON" != "xno" && test "x$enable_python" != "xno"],[
[AC_DEFINE([HAVE_PYSTRING_FROMSTRING],1,
[Found PyString_FromString in libpython.])],
[],[$PYTHON_BLDLIBRARY])
+ AC_CHECK_LIB([c],[PyString_AsString],
+ [AC_DEFINE([HAVE_PYSTRING_ASSTRING],1,
+ [Found PyString_AsString in libpython.])],
+ [],[$PYTHON_BLDLIBRARY])
+ AC_CHECK_LIB([c],[PyUnicode_AsU...
2019 Dec 02
1
Debian Stretch - > buster: samba packages
...*
> libdns162* libenca0* libexempi3* libexif12* libicu57* libiptcdata0*
> libirs-export141* libisc160* libisccc-export140* libisccc140*
> libisccfg-export140* libisccfg140* libjansson4* libkdb5-8* liblwres141*
> libmariadbclient18* libnss-winbind* libpam-winbind* libperl5.24*
> libpython3.5* libpython3.5-dev* libpython3.5-minimal*
> libpython3.5-stdlib* libsmbclient* libstdc++-6-dev* libstemmer0d*
> libtracker-sparql-1.0-0* libunbound2* libuptimed0* libwbclient0*
> python-idna*
> python-pyasn1* python3-iso8601* python3-ldb* python3-markdown*
> python3-pyasn1* pyth...
2020 Jan 09
9
[PATCH 0/7] Various Python cleanups.
Patch #7 depends on:
https://www.redhat.com/archives/libguestfs/2020-January/msg00035.html
No, Python < 3 support is not dropped yet, however it will be easier
after this series.
Pino Toscano (7):
build: enforce a minimum Python version
python: drop code for Python < 2.5
python: assume support for Capsules
python: remove compile time check for PyString_AsString
python: replace
2013 Jun 03
2
Python fix
This is the same fix I posted a few days ago for hivex
(<1369351909-23821-3-git-send-email-bengen@hilluzination.de>).
Cheers,
-Hilko
2019 Sep 11
3
[PATCH nbdkit] python: Drop support for Python 2.
This patch proposes to drop support for Python 2 in nbdkit.
Rather than abruptly drop it everywhere, my proposal is that we point
people to nbdkit 1.14 (the current stable version) if they want to
continue with Python 2 plugins, while gently reminding them of the
upcoming Python 2.7 end of life announcement.
Libnbd never supported Python 2. Libguestfs in theory supports
Python 2 but I dropped
2014 Nov 04
13
[PATCH 0/9] Small bits of non-Linux porting - #2
...c: launch: cast the sockaddr args to sockaddr*
build: check for libintl, and use it
builder: fix inclusion of <config.h> in lex-generated source
build: isolate the libdb tools search in an own autoconf macro
test-charset-fidelity: use and link against gnulib
python: fix detection of libpython features
ruby: fix detection of ruby library
tests/qemu: isolate MD5 calculation in an own shared function
align/Makefile.am | 1 +
builder/Makefile.am | 2 ++
builder/index-scan.l | 4 ++-
cat/Makefile.am | 4 ++...
2018 Apr 05
4
[PATCH nbdkit] python: Turn python exceptions into nbdkit errors
Much more annoying that it needs to be, but I have tested it and it
works on Python 2 & 3. Note this will not work on Python 3.0 - 3.2,
but I guess we don't care about those versions.
Rich.
2015 Oct 27
1
[PATCH] configure: Move language binding detection to separate files.
This commit starts to split our massive, monolithic configure.ac file
into smaller files, using the m4_include mechanism to combine them.
I don't know if we should really do this, so I'm open to comments
about it. However:
- Our configure.ac script is 1800+ lines long, and that's pretty long.
- configure.ac lacks structure; splitting it up might improve that.
- From what I read,
2015 Mar 07
0
4.2.0 Relocation error
Hi Spencer,
which linux do you run on raspberry? Ive installed Debian 8 (Jessi) and
compiled samb42 on it, runs fine. Dont forget to install libpython-dev :-)
Did you pass all tests from samba-wiki for AD? How did you start samba?
Regards
Oliver
On 07.03.2015 12:26, Spencer York wrote:
> Greetings,
>
> I am trying to get 4.2.0 Installed on a raspberry pi 2, I can build
> and install, but upon running samba -D I get the following:...
2013 Jun 03
0
[PATCH] python: Build extension with PEP-3149 compliant suffix if defined.
...print (sysconfig.get_config_var('EXT_SUFFIX') or sysconfig.get_config_var('SO'))"`
+ PYTHON_EXT_SUFFIX=$python_ext_suffix
+ fi
+ AC_MSG_RESULT([$PYTHON_EXT_SUFFIX])
+
dnl Look for some optional symbols in libpython.
old_LIBS="$LIBS"
@@ -1183,6 +1191,7 @@ AS_IF([test "x$enable_python" != "xno"],[
AC_SUBST(PYTHON_PREFIX)
AC_SUBST(PYTHON_VERSION)
AC_SUBST(PYTHON_INSTALLDIR)
+ AC_SUBST(PYTHON_EXT_SUFFIX)
])
AM_CONDITIONAL([HAVE_PYTHON],
[test "...