Skip to content

Commit d83be97

Browse files
committed
disable native on non-linux
1 parent 5b2eb2a commit d83be97

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -118,7 +118,7 @@ def run(self):
118118
name='vmprof',
119119
author='vmprof team',
120120
author_email='fijal@baroquesoftware.com',
121-
version="0.4.12",
121+
version="0.4.13",
122122
packages=find_packages(),
123123
description="Python's vmprof client",
124124
long_description='See https://vmprof.readthedocs.org/',

vmprof/cli.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
from __future__ import print_function
22

33
import argparse
4+
import sys
45
from six.moves import configparser
56

67

@@ -60,7 +61,7 @@ def build_argparser():
6061
)
6162
parser.add_argument(
6263
'--no-native', '-n',
63-
default=False,
64+
default=not sys.platform.startswith('linux'),
6465
action='store_true',
6566
help='Disable native profiling for this run'
6667
)

0 commit comments

Comments
 (0)