Actions
Bug #1046
closedbabeltrace README, CentOS/RHEL, and PYTHON_CONFIG for python3
Status:
Invalid
Priority:
Normal
Assignee:
-
Category:
-
Target version:
-
Start date:
07/14/2016
Due date:
% Done:
0%
Estimated time:
Description
The README
for babeltrace
reads in part:
Please note that some distributions will need the following environment variables set before running configure: export PYTHON="python3" export PYTHON_CONFIG="/usr/bin/python3-config"
On CentOS 7 (and thus RHEL 7) at least, python3
does not install its configuration at /usr/bin/python3-config
; rather, it is found at ~/anaconda3/bin/python3-config
. I haven't tried building babeltrace
on such systems, but I strongly suspect the "incorrect" PYTHON_CONFIG
will cause trouble.
One solution would be to dynamically extract the python3-config
path. This piece of bash
script would do the trick:
export PYTHON_CONFIG="`whereis python3-config | sed -r s/'^[^ ]* ?'// | sed s/' .*$'//`"
This would set
PYTHON_CONFIG
to the empty string if python3-config
is not found.
Updated by Jonathan Rajotte Julien about 4 years ago
- Status changed from New to Invalid
State of babeltrace moved a lot since.
Closing this ticket as invalid. Reopen it if it stills apply to Babeltrace 2.
Actions