diff --git a/.gitignore b/.gitignore index bd46701a1..18c93971f 100644 --- a/.gitignore +++ b/.gitignore @@ -8,3 +8,4 @@ __pycache__/ *.egg-info/ *.egg dist/ +*.whl diff --git a/Cargo.lock b/Cargo.lock index fa4d72b53..edb7989f0 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -1108,7 +1108,7 @@ dependencies = [ [[package]] name = "pyo3-pack" -version = "0.7.0-beta.1" +version = "0.7.0-beta.2" dependencies = [ "base64 0.10.1 (registry+https://github.com/rust-lang/crates.io-index)", "cargo_metadata 0.8.0 (registry+https://github.com/rust-lang/crates.io-index)", diff --git a/Cargo.toml b/Cargo.toml index 74978d744..7400b4735 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,7 +1,7 @@ [package] authors = ["konstin "] 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" diff --git a/pyo3_pack/__init__.py b/pyo3_pack/__init__.py index 5f5cc39c5..97a7c9227 100644 --- a/pyo3_pack/__init__.py +++ b/pyo3_pack/__init__.py @@ -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) @@ -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) @@ -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]