(prefix)
Fix permissions in the install prefix

    For all files in the prefix, ensure that:
    - everything is owned by current user:group
    - nothing is world-writeable

    Run after each install command.
Fix permissions in the install prefix
Fix permissions in the install prefix
def fix_permissions(prefix):
    """Fix permissions in the install prefix

    For all files in the prefix, ensure that:
    - everything is owned by current user:group
    - nothing is world-writeable

    Run after each install command.
    """
    utils.run_subprocess(["chown", "-R", f"{os.getuid()}:{os.getgid()}", prefix])
    utils.run_subprocess(["chmod", "-R", "o-w", prefix])
def fix_permissions ( prefix ) : utils . run_subprocess ( [ "chown" , "-R" , f"{os.getuid()}:{os.getgid()}" , prefix ] ) utils . run_subprocess ( [ "chmod" , "-R" , "o-w" , prefix ] )