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

Turn off pypy3compile in postinst script for .DEB #1

Open
spapadim opened this issue Jun 25, 2020 · 0 comments
Open

Turn off pypy3compile in postinst script for .DEB #1

spapadim opened this issue Jun 25, 2020 · 0 comments

Comments

@spapadim
Copy link
Owner

PyPy3 does not seem to like type annotations in assignments (although it's ok with function/method annotations). As a result, if pypy3 is installed on the system, /usr/bin/pypy3compile is invoked, which spits out the following error during .DEB installation:

Failed to byte-compile /usr/lib/python3/dist-packages/argonone/__init__.py:   
File "/usr/lib/python3/dist-packages/argonone/__init__.py", line 103
    thresholds: List[float] = []
              ^
SyntaxError: invalid syntax

The installed package still works, of course, but the message is rather annoying.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant