Skip to content

Commit 8a715c0

Browse files
committed
Do not run cargo check for sdist command #18
1 parent 9cb0214 commit 8a715c0

File tree

2 files changed

+5
-0
lines changed

2 files changed

+5
-0
lines changed

CHANGES.rst

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,8 @@ CHANGES
66

77
- Generate console-script for Binding.Exec #22
88

9+
- Do not run `cargo check` for `sdist` command #18
10+
911
- Remove extra python3 file extension for executables.
1012

1113

setuptools_rust/check.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,9 @@ def finalize_options(self):
2828
if isinstance(ext, RustExtension)]
2929

3030
def run(self):
31+
if 'sdist' in self.distribution.commands:
32+
return
33+
3134
if not self.extensions:
3235
return
3336

0 commit comments

Comments
 (0)