Skip to content

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

Closed

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

  1. added
    type-bug
    on Jun 9, 2024
  2. added
    3.13
    3.14
    on Jun 9, 2024
  3. added a commit that references this issue on Jun 9, 2024
  4. added a commit that references this issue on Jun 11, 2024
  5. added a commit that references this issue on Jun 11, 2024
  6. added a commit that references this issue on Jun 11, 2024
  7. added a commit that references this issue on Jun 30, 2024
  8. added a commit that references this issue on Jul 17, 2024
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.133.14type-bug

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions