Skip to content

[3.13] shell version of python-config started using bashisms #120291

Description

@mgorny

Bug report

Bug description:

Since de2a73d python-config.sh.in is using bashisms but declaring #!/bin/sh as the shell. As a result, it now throws errors on systems using non-bash shells:

$ python3.13-config 
/usr/bin/python3.13-config: 8: [[: not found
Usage: /usr/bin/python3.13-config --prefix|--exec-prefix|--includes|--libs|--cflags|--ldflags|--extension-suffix|--help|--abiflags|--configdir|--embed

FWICS, there's no reason to use [[ ... ]] over plain shell [ ... ] there.

CC @kiendang

CPython versions tested on:

3.13, CPython main branch

Operating systems tested on:

Linux

Linked PRs

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    3.13bugs and security fixes3.14bugs and security fixestype-bugAn unexpected behavior, bug, or error

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions