Project

General

Profile

Actions

Bug #1046

closed

babeltrace README, CentOS/RHEL, and PYTHON_CONFIG for python3

Added by Daniel U. Thibault almost 8 years ago. Updated about 4 years ago.

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.

Actions #1

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

Also available in: Atom PDF