Skip to content

Commit

Permalink
Ignore utf8 errors
Browse files Browse the repository at this point in the history
  • Loading branch information
konstin committed Jun 25, 2019
1 parent 36e1caf commit e7a6a09
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 5 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -8,3 +8,4 @@ __pycache__/
*.egg-info/
*.egg
dist/
*.whl
2 changes: 1 addition & 1 deletion Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
[package]
authors = ["konstin <[email protected]>"]
name = "pyo3-pack"
version = "0.7.0-beta.1"
version = "0.7.0-beta.2"
description = "Build and publish crates with pyo3, rust-cpython and cffi bindings as well as rust binaries as python packages"
exclude = ["test-crates/**/*", "integration-test/**/*", "sysconfig/*", "test-data/*"]
readme = "Readme.md"
Expand Down
6 changes: 3 additions & 3 deletions pyo3_pack/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ def build_wheel(wheel_directory, config_settings=None, metadata_directory=None):

print("Running `{}`".format(" ".join(command)))
try:
output = subprocess.check_output(command, universal_newlines=True)
output = subprocess.check_output(command).decode("utf-8", "ignore")
except subprocess.CalledProcessError as e:
print("Error: {}".format(e))
sys.exit(1)
Expand All @@ -77,7 +77,7 @@ def build_sdist(sdist_directory, config_settings=None):

print("Running `{}`".format(" ".join(command)))
try:
output = subprocess.check_output(command, universal_newlines=True)
output = subprocess.check_output(command).decode("utf-8", "ignore")
except subprocess.CalledProcessError as e:
print(e)
sys.exit(1)
Expand Down Expand Up @@ -110,6 +110,6 @@ def prepare_metadata_for_build_wheel(metadata_directory, config_settings=None):
command.extend(get_config_options())

print("Running `{}`".format(" ".join(command)))
output = subprocess.check_output(command, universal_newlines=True)
output = subprocess.check_output(command).decode("utf-8", "ignore")
print(output)
return output.strip().splitlines()[-1]

0 comments on commit e7a6a09

Please sign in to comment.