public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* Perf: cannot overide PYTHON(_CONFIG)
@ 2014-07-24 16:36 Thomas Ilsche
  2014-07-25  3:14 ` [PATCH 1/2] perf tools: Fix make PYTHON override Namhyung Kim
  0 siblings, 1 reply; 10+ messages in thread
From: Thomas Ilsche @ 2014-07-24 16:36 UTC (permalink / raw)
  To: Peter Zijlstra, Paul Mackerras, Ingo Molnar,
	Arnaldo Carvalho de Melo
  Cc: linux-kernel

Dear perf maintainers,

It is documented in Makefile.perf and the Python 3 error message to use
make PYTHON=python2. However this does not work anymore since
9734163b6ee1425c6fa4b65d7e6ce34c9079420d moved the libpython feature check.

Further it would be more portable anyway to use "python2" as default
instead of "python" as long as python3 is not supported. This follows
the PEP 394 recommendation: https://www.python.org/dev/peps/pep-0394


I am not sure how to correctly fix the failure to respect
PYTHON(_CONFIG). I would assume that early in perf/config/Makefile
FEATURE_CHECK_[CFLAGS|LDFLAGS]-libpython(-version) needs to be set
(before the feature checks are executed) and that the reconstruction of
FLAGS_PYTHON_EMBED based on hardcoded python-config needs to be removed.

Best Regards,
Thomas
-- 
Dipl. Inf. Thomas Ilsche
Computer Scientist
Highly Adaptive Energy-Efficient Computing
CRC 912 HAEC: http://tu-dresden.de/sfb912
Technische Universität Dresden
Center for Information Services and High Performance Computing (ZIH)
01062 Dresden, Germany

Phone: +49 351 463-42168
Fax: +49 351 463-3773
E-Mail: thomas.ilsche@tu-dresden.de

^ permalink raw reply	[flat|nested] 10+ messages in thread

end of thread, other threads:[~2014-07-29  6:39 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-07-24 16:36 Perf: cannot overide PYTHON(_CONFIG) Thomas Ilsche
2014-07-25  3:14 ` [PATCH 1/2] perf tools: Fix make PYTHON override Namhyung Kim
2014-07-25  3:14   ` [PATCH 2/2] perf tools: Default to python version 2 Namhyung Kim
2014-07-25  9:28     ` Thomas Ilsche
2014-07-25 10:24       ` Namhyung Kim
2014-07-25 11:43         ` Thomas Ilsche
2014-07-28  0:06           ` Namhyung Kim
2014-07-28 11:11             ` Thomas Ilsche
2014-07-29  6:38               ` Namhyung Kim
2014-07-25  7:23   ` [PATCH 1/2] perf tools: Fix make PYTHON override Thomas Ilsche

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox