This file is indexed.

/usr/share/sagemath/bin/sage-pypkg-location is in sagemath-common 7.4-9.

This file is owned by root:root, with mode 0o755.

The actual contents of the file can be viewed below.

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
#!/usr/bin/env python
from __future__ import print_function
from pkg_resources import Requirement, working_set
import sys

if __name__ == "__main__":
    help_message = """
Usage: {0} <package>
""".format(sys.argv[0])
    if len(sys.argv) < 2:
        print(help_message)
        exit(1)
    else:
        location = working_set.find(Requirement.parse(sys.argv[1])).location
        print(location)