Skip to content

Commit 2d5cc9f

Browse files
MAINT: refer to python3 in refguide_check (scipy#16937)
[skip actions][skip circle] Co-authored-by: Ralf Gommers <ralf.gommers@gmail.com>
1 parent d513ce7 commit 2d5cc9f

File tree

2 files changed

+6
-4
lines changed

2 files changed

+6
-4
lines changed

dev.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1006,7 +1006,9 @@ def task_meta(cls, **kwargs):
10061006
args = Args(**kwargs)
10071007
dirs = Dirs(args)
10081008

1009-
cmd = [str(dirs.root / 'tools' / 'refguide_check.py'), '--doctests']
1009+
cmd = [f'{sys.executable}',
1010+
str(dirs.root / 'tools' / 'refguide_check.py'),
1011+
'--doctests']
10101012
if args.verbose:
10111013
cmd += ['-vvv']
10121014
if args.submodule:

tools/refguide_check.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#!/usr/bin/env python
1+
#!/usr/bin/env python3
22
"""
33
refguide_check.py [OPTIONS] [-- ARGS]
44
@@ -7,7 +7,7 @@
77
88
Example of usage::
99
10-
$ python refguide_check.py optimize
10+
$ python3 refguide_check.py optimize
1111
1212
Note that this is a helper script to be able to check if things are missing;
1313
the output of this script does need to be checked manually. In some cases
@@ -19,7 +19,7 @@
1919
scipy docstrings doctestable!], this is just to make sure that code in
2020
docstrings is valid python::
2121
22-
$ python refguide_check.py --doctests optimize
22+
$ python3 refguide_check.py --doctests optimize
2323
2424
"""
2525
import copy

0 commit comments

Comments
 (0)