Displaying 20 results from an estimated 60 matches for "distutils".
2011 May 03
2
[PATCH] [hivex] Use Python's distutils to determine include and site-packages directories.
...T([not found])
- done
- if test "x$PYTHON_INCLUDEDIR" = "x"; then
- AC_MSG_WARN([Python include directory not found])
+
+ AC_MSG_CHECKING([for Python include path])
+ if test -z "$PYTHON_INCLUDEDIR"; then
+ python_path=`$PYTHON -c "import distutils.sysconfig; \
+ print (distutils.sysconfig.get_python_inc ());"`
+ PYTHON_INCLUDEDIR=$python_path
fi
+ AC_MSG_RESULT([$PYTHON_INCLUDEDIR])
- for d in \
- $PYTHON_PREFIX/lib64/python$PYTHON_VERSION/site-packages \
- $PYTHON_PREFIX...
2010 May 13
2
Compiling R with --enable-R-shlib for rpy2 error
Hi,
I am trying to compile R with the command below in order to install rpy2.
./configure --prefix=/usr/local/R/R-2.9.2 --with-gnu-ld --with-cairo
--with-x --enable-R-shlib
However, error the I have gotten was:
/usr/bin/ld: CConverters.o: relocation R_X86_64_32S against `R_FunTab' can
not be used when making a shared object; recompile with -fPIC
CConverters.o: could not read symbols: Bad
2002 Mar 11
2
Help with Python, R and RPY
...un
python setup.py install
I get the following complaints,
[root at localhost rpy]# python setup.py install
Traceback (most recent call last):
File "setup.py", line 17, in ?
get_config_vars()['OPT'] = '-DNDEBUG -g -O3 -Wall'
File "/usr/lib/python2.2/distutils/sysconfig.py", line 408, in
get_config_vars
func()
File "/usr/lib/python2.2/distutils/sysconfig.py", line 313, in _init_posix
raise DistutilsPlatformError(my_msg)
distutils.errors.DistutilsPlatformError: invalid Python installation: unable
to open /usr/lib/python2.2/config/...
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(-)
>
> dif...
2019 May 28
3
python dist-utils and python-config [SEC=UNOFFICIAL]
...requisites are on the CentOS Everything ISO so I don't have to download a lot.
I installed all the documented dependencies and configure complained about python3.
So I downloaded and installed
python36-libs-3.6.8-1.el7.x86_64.rpm
python36-3.6.8-1.el7.x86_64.rpm
and now I get (./configure)
:DistUtils not installed? Broken python installation? Get python-config now.
I tried to find dist-utils. All I could find was:
python36-distutils-extra-2.39-8.el7.noarch.rpm
This is apparently not what is required, because configure still gives me the same error.
I've had even less luck looking for py...
2013 May 16
3
[PATCH] Use pkg-config for Python
...@<:@1@:>@)"`
PYTHON_VERSION="$PYTHON_VERSION_MAJOR.$PYTHON_VERSION_MINOR"
AC_MSG_RESULT([$PYTHON_VERSION])
-
- AC_MSG_CHECKING([for Python include path])
- if test -z "$PYTHON_INCLUDEDIR"; then
- python_path=`$PYTHON -c "import distutils.sysconfig; \
- print (distutils.sysconfig.get_python_inc ());"`
- PYTHON_INCLUDEDIR=$python_path
- fi
- AC_MSG_RESULT([$PYTHON_INCLUDEDIR])
+ # Debian: python-2.7.pc, python-3.2.pc
+ PKG_CHECK_MODULES([PYTHON], [python-...
2013 Jun 17
1
Re: [PATCH] Use pkg-config for Python
On Mon, Jun 17, 2013 at 10:08:46AM +0200, Olaf Hering wrote:
> On Mon, Jun 17, Richard W.M. Jones wrote:
>
> > On Sun, Jun 16, 2013 at 02:55:29PM +0200, Olaf Hering wrote:
> > > For me current 1.20 branch fails to build python in SLE11.
> >
> > Does SuSE's python have a pkg-config file?
>
> SLE11 does not have it, but openSUSE 11.4+ has it.
> I
2006 Jun 09
10
Why do we use /usr/lib/python to install python libraries?
This seems exceptionally evil and is definitely a PITA. What was the
original problem that led us to do this? I''d like to take a stab at
correcting it so we can have a more sane installation.
Regards,
Anthony Liguori
_______________________________________________
Xen-devel mailing list
Xen-devel@lists.xensource.com
http://lists.xensource.com/xen-devel
2003 Dec 09
2
build glitches
...h python. python -V says ''Python 2.3.2''.
/usr/bin/make -C py
make[3]: Entering directory
`/usr/research/playground/becker/xen/xeno-unstable.bk/tools/xc/py''
python setup.py build
Traceback (most recent call last):
File "setup.py", line 2, in ?
from distutils.core import setup, Extension
ImportError: No module named distutils.core
Any suggestions?
David Becker
becker@cs.duke.edu
-------------------------------------------------------
This SF.net email is sponsored by: SF.net Giveback Program.
Does SourceForge.net help you be more productive? Does...
2013 May 23
3
hivex: Improvents in building Python bindings
Building against multiple versions of Python is a lot of fun as it is.
Add autoconf/automake/libtool (and possible distribution-specific
stuff) to the mix and things get really interesting:
On Debian and Ubuntu, building against python 3.3 requires an extra
include path as documented in
<http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=692387>.
As discussed in
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....
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,
2006 Apr 20
3
[PATCH] fix tools compile issue on sles 10
With sles 10, ''make tools'' produces the following:
CFLAGS="-O2 -fomit-frame-pointer -DNDEBUG -m32 -march=i686 -Wall
-Wstrict-prototypes -Wdeclaration-after-statement
-D__XEN_INTERFACE_VERSION__=0x00030101" python setup.py install
--home="/root/xen/xen-unstable.hg/dist/install/usr" --force
running install
error: must supply either home or prefix/exec-prefix --
2011 Jan 19
13
xen-unstable: ImportError: No module named xen.xm
I have pulled the latest from xen-unstable on a new machine, I run
make world and make install and after rebooting into xen, when i run
xm list or anything else i get:
# xm list
Traceback (most recent call last):
File "/usr/sbin/xm", line 5, in <module>
from xen.xm import main
ImportError: No module named xen.xm
I also tried going into the tools dir and make install,
2011 Jan 19
13
xen-unstable: ImportError: No module named xen.xm
I have pulled the latest from xen-unstable on a new machine, I run
make world and make install and after rebooting into xen, when i run
xm list or anything else i get:
# xm list
Traceback (most recent call last):
File "/usr/sbin/xm", line 5, in <module>
from xen.xm import main
ImportError: No module named xen.xm
I also tried going into the tools dir and make install,
2014 Jan 15
4
[PATCH 1/4] hivex: Python 2.6 does not have sysconfig.
...FFIX"; then
- python_ext_suffix=`$PYTHON -c "import sysconfig; \
- print (sysconfig.get_config_var('EXT_SUFFIX') or sysconfig.get_config_var('SO'))"`
+ python_ext_suffix=`$PYTHON -c "import distutils.sysconfig; \
+ print (distutils.sysconfig.get_config_var('EXT_SUFFIX') or distutils.sysconfig.get_config_var('SO'))"`
PYTHON_EXT_SUFFIX=$python_ext_suffix
fi
AC_MSG_RESULT([$PYTHON_EXT_SUFF...
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
2019 May 28
0
python dist-utils and python-config [SEC=UNOFFICIAL]
...'PYTHON=python2 make'
>
> I installed all the documented dependencies and configure complained about python3.
>
> So I downloaded and installed
>
> python36-libs-3.6.8-1.el7.x86_64.rpm
> python36-3.6.8-1.el7.x86_64.rpm
>
> and now I get (./configure)
>
> :DistUtils not installed? Broken python installation? Get python-config now.
>
> I tried to find dist-utils. All I could find was:
>
> python36-distutils-extra-2.39-8.el7.noarch.rpm
>
> This is apparently not what is required, because configure still gives me the same error.
>
> I'...
2024 Sep 05
1
Bug#1080837: Missing Build-Depends on python3-setuptools
Source: xen
Version: 4.17.3+36-g54dacb5c02-1
Severity: important
User: debian-python at lists.debian.org
Usertags: dh-python-no-setuptools
Tags: sid, trixie
This package failed build from source when test-built against a version of
dh-python without a python3-setuptools dependency.
distutils is no longer part of the Python standard library, since 3.12. But a
minimal version of it becomes available when the python3-setuptools package is
installed.
Please add a Build-Depends on python3-setuptools to your package, or migrate
the package's build system away from setuptools/distutils....
2011 Dec 10
1
[PATCH] Fixed checks for libpython features
...fi
- AC_CHECK_LIB([$LIBPYTHON], [PyList_Size], [],
- [AC_MSG_FAILURE([$LIBPYTHON is not installed])])
- AC_CHECK_FUNCS([PyCapsule_New \
- PyString_AsString])
+ PYTHON_BLDLIBRARY=`$PYTHON -c "import distutils.sysconfig; \
+ print (distutils.sysconfig.get_config_var('BLDLIBRARY'))"`
+ AC_CHECK_LIB([c],[PyCapsule_New],
+ [AC_DEFINE([HAVE_PYCAPSULE_NEW],1,
+ [Found PyCapsule_New in l...