<html>
<head>
<base href="http://llvm.org/bugs/" />
</head>
<body><table border="1" cellspacing="0" cellpadding="8">
<tr>
<th>Bug ID</th>
<td><a class="bz_bug_link
bz_status_NEW "
title="NEW --- - LLDB finds incorrect python version if python 3 is installed (Arch Linux)"
href="http://llvm.org/bugs/show_bug.cgi?id=16183">16183</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>LLDB finds incorrect python version if python 3 is installed (Arch Linux)
</td>
</tr>
<tr>
<th>Product</th>
<td>lldb
</td>
</tr>
<tr>
<th>Version</th>
<td>unspecified
</td>
</tr>
<tr>
<th>Hardware</th>
<td>PC
</td>
</tr>
<tr>
<th>OS</th>
<td>Linux
</td>
</tr>
<tr>
<th>Status</th>
<td>NEW
</td>
</tr>
<tr>
<th>Severity</th>
<td>normal
</td>
</tr>
<tr>
<th>Priority</th>
<td>P
</td>
</tr>
<tr>
<th>Component</th>
<td>All Bugs
</td>
</tr>
<tr>
<th>Assignee</th>
<td>lldb-dev@cs.uiuc.edu
</td>
</tr>
<tr>
<th>Reporter</th>
<td>daniel.malea@intel.com
</td>
</tr>
<tr>
<th>Classification</th>
<td>Unclassified
</td>
</tr></table>
<p>
<div>
<pre>The LLDB SWIG scripts only support python 2. When trying to run with python 3,
the following error occurs:
File "<string>", line 1
from distutils.sysconfig import get_python_lib; print
get_python_lib(True, False, "/tmp/llvm/build");
Due to:
<lldb_dir>/scripts/Python/build-swig-Python.sh
and
<lldb_dir>/scripts/Python/build-swig-Python-LLDB.sh
scripts using "usr/bin/env python" to locate the right python executable. On
Arch Linux, where python 3 is the default, the correct way to find python is by
doing "/usr/bin/env python2" however "python2" is not installed on Mac OS X...
So to keep things working on multiple platforms, propagating the LLVM CMake
variable "PYTHON_EXECUTABLE" to the scripts above is the right approach.</pre>
</div>
</p>
<hr>
<span>You are receiving this mail because:</span>
<ul>
<li>You are the assignee for the bug.</li>
</ul>
</body>
</html>