Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Syntax error in _delim.py #102033

Open
dmacks opened this issue Feb 18, 2023 · 0 comments
Open

Syntax error in _delim.py #102033

dmacks opened this issue Feb 18, 2023 · 0 comments
Labels
3.11 3.12 build The build process and cross-build type-bug An unexpected behavior, bug, or error

Comments

@dmacks
Copy link

dmacks commented Feb 18, 2023

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.

@dmacks dmacks added the type-bug An unexpected behavior, bug, or error label Feb 18, 2023
@arhadthedev arhadthedev added the build The build process and cross-build label Feb 19, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
3.11 3.12 build The build process and cross-build type-bug An unexpected behavior, bug, or error
Projects
None yet
Development

No branches or pull requests

3 participants