-
-
Notifications
You must be signed in to change notification settings - Fork 258
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
The PEX_TOOLS venv --compile
option should ignore compile errors.
#2001
Comments
The failing line in question is here: |
Should we then just ignore this error using |
That should do. Note that the exception raised is That has fields for stdout and stderr; so you could use one or both of those to relay compilation errors as a warning in case the errors are real and will actually blow up when the PEX is run. I'm not sure about how to handle that, being too noisy for some cases and potentailly too quiet for others, but that's where the data is at any rate. |
If you do go the warning route, you'd use |
Hey @jsirois I have finally added an integration test , please have a look. |
If there is a compile error, it may be irrelevant as in this case https://github.com/ShantanuKumar/pants-multi-poetry.
There the PEX produced via
./pants package src/package-a/package_a:pex_package_a
runs into this issue:The
aenum/_py2.py
file will never get imported by the Python 3.9 interpreter; so this compile failure is not relevant.If the compile error is real, the application will encounter it at runtime and fail anyhow. On balance, it seems a later warning is by far the lesser of two evils here. Currently failing the venv creation due to failing compilation of a file stops things in their tracks with no recourse.
The text was updated successfully, but these errors were encountered: