pyflame: also install flame-chart-json
This is useful to use chrome's flamechart viewer.
This commit is contained in:
parent
e4d06cbab6
commit
6b9bcfe6fd
@ -1,15 +1,15 @@
|
|||||||
{ stdenv, fetchFromGitHub, autoreconfHook, coreutils, pkgconfig
|
{ stdenv, fetchFromGitHub, autoreconfHook, coreutils, pkgconfig
|
||||||
# pyflame needs one python version per ABI
|
# pyflame needs one python version per ABI
|
||||||
# are currently supported
|
# are currently supported
|
||||||
# * 2.6 or 2.7 for 2.x ABI
|
# * 2.6 or 2.7 for 2.x ABI
|
||||||
# * 3.4 or 3.5 for 3.{4,5} ABI
|
# * 3.4 or 3.5 for 3.{4,5} ABI
|
||||||
# * 3.6 for 3.6+ ABI
|
# * 3.6 for 3.6+ ABI
|
||||||
# if you want to disable support for some ABI, make the corresponding argument null
|
# if you want to disable support for some ABI, make the corresponding argument null
|
||||||
, python2, python35, python36
|
, python2, python35, python36, python3
|
||||||
}:
|
}:
|
||||||
stdenv.mkDerivation rec {
|
stdenv.mkDerivation rec {
|
||||||
pname = "pyflame";
|
pname = "pyflame";
|
||||||
version = "1.6.7";
|
version = "1.6.7";
|
||||||
src = fetchFromGitHub {
|
src = fetchFromGitHub {
|
||||||
owner = "uber";
|
owner = "uber";
|
||||||
repo = "pyflame";
|
repo = "pyflame";
|
||||||
@ -25,6 +25,14 @@ stdenv.mkDerivation rec {
|
|||||||
# some tests will fail in the sandbox
|
# some tests will fail in the sandbox
|
||||||
substituteInPlace tests/test_end_to_end.py \
|
substituteInPlace tests/test_end_to_end.py \
|
||||||
--replace 'skipif(IS_DOCKER' 'skipif(True'
|
--replace 'skipif(IS_DOCKER' 'skipif(True'
|
||||||
|
|
||||||
|
# don't use patchShebangs here to be explicit about the python version
|
||||||
|
substituteInPlace utils/flame-chart-json \
|
||||||
|
--replace '#!usr/bin/env python' '#!${python3.interpreter}'
|
||||||
|
'';
|
||||||
|
|
||||||
|
postInstall = ''
|
||||||
|
install -D utils/flame-chart-json $out/bin/flame-chart-json
|
||||||
'';
|
'';
|
||||||
|
|
||||||
doCheck = true;
|
doCheck = true;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user