Skip to content

Commit

Permalink
Fix use of optional
Browse files Browse the repository at this point in the history
  • Loading branch information
jelmer committed Feb 10, 2024
1 parent 9a77f96 commit 27a44eb
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -36,9 +36,9 @@
optional = os.environ.get("CIBUILDWHEEL", "0") != "1"

rust_extensions = [
RustExtension("dulwich._objects", "crates/objects/Cargo.toml", binding=Binding.PyO3, optional=True),
RustExtension("dulwich._pack", "crates/pack/Cargo.toml", binding=Binding.PyO3, optional=True),
RustExtension("dulwich._diff_tree", "crates/diff-tree/Cargo.toml", binding=Binding.PyO3, optional=True),
RustExtension("dulwich._objects", "crates/objects/Cargo.toml", binding=Binding.PyO3, optional=optional),
RustExtension("dulwich._pack", "crates/pack/Cargo.toml", binding=Binding.PyO3, optional=optional),
RustExtension("dulwich._diff_tree", "crates/diff-tree/Cargo.toml", binding=Binding.PyO3, optional=optional),
]

# Ideally, setuptools would just provide a way to do this
Expand Down

0 comments on commit 27a44eb

Please sign in to comment.