Skip to content

Syntax error in _delim.py #102033

Closed
Closed

Description

@dmacks

Bug report

As part of packaging in fink, we try to byte-compile all .py using the just-built interpretter in the staging directory for installation. After compiling from the source tarball:

make install DESTDIR=/sw/build.build/root-python311-3.11.2-1
[...]
DYLD_LIBRARY_PATH=/sw/build.build/root-python311-3.11.2-1/sw/lib
+ /sw/build.build/root-python311-3.11.2-1/sw/bin/python3.11 -m compileall -f -o 0 -o 1 -o 2 _sysconfigdata__darwin_darwin.py Tools
[...]
Compiling 'Tools/c-analyzer/c_parser/parser/_delim.py'...
***   File "Tools/c-analyzer/c_parser/parser/_delim.py", line 37
    ''')
       ^
SyntaxError: f-string: empty expression not allowed

Your environment

This is OS X 10.13, I see the same results on python-3.11.2, and 3.10.10 and 3.10.4 but not 3.9.12, which makes sense since _delim.py was introduced via PR #22841 and unchanged since that point.

Linked PRs

Activity

  1. added
    type-bug
    on Feb 18, 2023
  2. added
    build
    on Feb 19, 2023
  3. added
    3.11
    3.12
    on Feb 19, 2023
  4. added a commit that references this issue on Feb 20, 2023
  5. added a commit that references this issue on Mar 22, 2023
  6. hauntsaninja commented on Mar 25, 2023

    @hauntsaninja
    Contributor

    Thanks all!

  7. added a commit that references this issue on Mar 27, 2023
  8. added a commit that references this issue on Apr 11, 2023
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.113.12buildtype-bug

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions