Skip to content

Commit

Permalink
Port from cffi to the cpython crate.
Browse files Browse the repository at this point in the history
[ci skip-jvm-tests]
  • Loading branch information
stuhood committed May 17, 2020
1 parent f48b32a commit 95ab23b
Show file tree
Hide file tree
Showing 27 changed files with 1,686 additions and 3,088 deletions.
1 change: 0 additions & 1 deletion 3rdparty/python/requirements.txt
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
ansicolors==1.1.8
beautifulsoup4>=4.6.0,<4.7
cffi==1.14.0
coverage>=4.5,<4.6
dataclasses==0.6
docutils>=0.15,<0.17
Expand Down
27 changes: 0 additions & 27 deletions build-support/bin/native/bootstrap_cffi.sh

This file was deleted.

2 changes: 1 addition & 1 deletion src/python/pants/backend/python/rules/pex.py
Original file line number Diff line number Diff line change
Expand Up @@ -300,7 +300,7 @@ async def create_pex(
argv.extend(pex_debug.iter_pex_args())

if python_setup.resolver_jobs:
argv.extend(["--jobs", python_setup.resolver_jobs])
argv.extend(["--jobs", str(python_setup.resolver_jobs)])

if python_setup.manylinux:
argv.extend(["--manylinux", python_setup.manylinux])
Expand Down
4 changes: 1 addition & 3 deletions src/python/pants/cache/artifact.py
Original file line number Diff line number Diff line change
Expand Up @@ -115,8 +115,6 @@ def extract(self):
# Note(yic): unlike the python implementation before, now we do not update self._relpath
# after the extraction.
try:
self.NATIVE_BINARY.decompress_tarball(
self._tarfile.encode(), self.artifact_extraction_root.encode()
)
self.NATIVE_BINARY.decompress_tarball(self._tarfile, self.artifact_extraction_root)
except Exception as e:
raise ArtifactError("Extracting artifact failed:\n{}".format(e))
1 change: 0 additions & 1 deletion src/python/pants/engine/internals/BUILD
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,6 @@ python_library(
sources=['native.py'],
dependencies=[
':native_engine_so',
'3rdparty/python:cffi',
'3rdparty/python:setuptools',
'src/python/pants/engine:addresses',
'src/python/pants/engine:fs',
Expand Down
2 changes: 0 additions & 2 deletions src/python/pants/engine/internals/engine_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -202,8 +202,6 @@ def test_include_trace_error_raises_error_with_trace(self):
Computing Task({fmt_rust_function(nested_raise)}(), <{__name__}.B object at 0xEEEEEEEEE>, A, true)
Throw(An exception for B)
Traceback (most recent call last):
File LOCATION-INFO, in call
val = func(*args)
File LOCATION-INFO, in nested_raise
fn_raises(x)
File LOCATION-INFO, in fn_raises
Expand Down
Loading

0 comments on commit 95ab23b

Please sign in to comment.