Skip to content

Commit

Permalink
Merge pull request #697 from messense/fix-481
Browse files Browse the repository at this point in the history
Fix `pip install maturin` on OpenBSD 6.8
  • Loading branch information
messense authored Nov 23, 2021
2 parents be4578c + 06457e7 commit 963670e
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
1 change: 1 addition & 0 deletions Changelog.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
## [Unreleased]

* Add support for excluding files from wheels by `.gitignore` in [#695](https://github.com/PyO3/maturin/pull/695)
* Fix `pip install maturin` on OpenBSD 6.8 in [#697](https://github.com/PyO3/maturin/pull/697)

## [0.12.1] - 2021-11-21

Expand Down
5 changes: 4 additions & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,10 @@ def run(self):
raise RuntimeError("build maturin failed:\n" + exc.output.decode())
print(metadata)
assert metadata["target"]["name"] == "maturin"
source = metadata["filenames"][0]
filenames = metadata["filenames"]
# somehow on openbsd `filenames` is empty but we can use the
# `executable` instead, see https://github.com/PyO3/maturin/issues/481
source = filenames[0] if filenames else metadata["executable"]

# run this after trying to build with cargo (as otherwise this leaves
# venv in a bad state: https://github.com/benfred/py-spy/issues/69)
Expand Down

0 comments on commit 963670e

Please sign in to comment.