-
-
Notifications
You must be signed in to change notification settings - Fork 649
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
Python 3 - fix cffi resolver issues #6225
Merged
jsirois
merged 3 commits into
pantsbuild:master
from
Eric-Arellano:py3-fixes_cffi-issues
Jul 24, 2018
Merged
Changes from 2 commits
Commits
Show all changes
3 commits
Select commit
Hold shift + click to select a range
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -41,7 +41,7 @@ def execute(self): | |
safe_concurrent_rename(pants_wd, tmp_trash) | ||
safe_concurrent_rename(tmpdir, pants_wd) | ||
|
||
if self.get_options().async: | ||
if self.get_options()['async']: | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. async is a reserved word in Py3 |
||
# The trash directory is deleted in a child process. | ||
pid = os.fork() | ||
if pid == 0: | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -6,10 +6,11 @@ | |
|
||
import os | ||
import shutil | ||
import sys | ||
from builtins import object | ||
from hashlib import sha1 | ||
|
||
from future.utils import raise_from | ||
|
||
from pants.build_graph.build_graph import sort_targets | ||
from pants.build_graph.target import Target | ||
from pants.invalidation.build_invalidator import CacheKey | ||
|
@@ -389,8 +390,6 @@ def _key_for(self, target): | |
except Exception as e: | ||
# This is a catch-all for problems we haven't caught up with and given a better diagnostic. | ||
# TODO(Eric Ayers): If you see this exception, add a fix to catch the problem earlier. | ||
exc_info = sys.exc_info() | ||
new_exception = self.CacheValidationError("Problem validating target {} in {}: {}" | ||
.format(target.id, target.address.spec_path, e)) | ||
|
||
raise self.CacheValidationError, new_exception, exc_info[2] | ||
raise_from(self.CacheValidationError(new_exception), e) | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
|
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You should bump lockstep over here:
https://github.com/Eric-Arellano/pants/blob/9a8ccd4916a11fdc6abe5941ff71f855d4ec003e/src/python/pants/backend/python/subsystems/python_setup.py#L36-L37
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Good catch. Fixed with latest commit. Thanks!