[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Xen-devel] Can't ./configure latest git



In addition, I had to grep -r -l '$(PYTHON)' * | xargs sed -i 's!$(PYTHON)!/usr/bin/python2!g' because I couldn't figure out where $(PYTHON) was set. At first I thought it was tools/get-fields.sh but setting it there didn't fix it.

On Mon, Apr 3, 2017 at 7:25 PM Duncan X. Simpson <virtualdxs@xxxxxxxxx> wrote:
Worked around with the following:

 ~git/xen   master ± git diff
diff --git a/tools/configure b/tools/configure
index 7a57e6562d..874498ad80 100755
--- a/tools/configure
+++ b/tools/configure
@@ -6859,7 +6859,7 @@ if echo "$PYTHON" | grep -q "^/"; then :
     PYTHON=`basename $PYTHONPATH`

 elif test -z "$PYTHON"; then :
-  PYTHON="python"
+  PYTHON="python2"
 else
   as_fn_error $? "PYTHON specified, but is not an absolute path" "$LINENO" 5
 fi

Not sure if this is ideal.

On Mon, Apr 3, 2017 at 7:18 PM Duncan X. Simpson <virtualdxs@xxxxxxxxx> wrote:
I just cloned Xen from git, but it won't configure. I have both versions of Python installed, but it tries to use 3 to run 2 code: 

    checking for inttypes.h... yes
    checking for stdint.h... yes
    checking for unistd.h... yes
      File "<string>", line 1
        import distutils.sysconfig;     print     distutils.sysconfig.get_config_var("VERSION")
                                                      ^
    SyntaxError: invalid syntax
    checking for python-config... /usr/bin/python-config
    checking Python.h usability... yes
    checking Python.h presence... yes
    checking for Python.h... yes

How do I fix this?
--

Duncan X. Simpson, K7DXS
--

Duncan X. Simpson, K7DXS
--

Duncan X. Simpson, K7DXS
_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxx
https://lists.xen.org/xen-devel

 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.