Skip to content

Commit 6dd986f

Browse files
committed
sdist should not download binary
1 parent 4a179fc commit 6dd986f

1 file changed

Lines changed: 4 additions & 2 deletions

File tree

setup.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -67,6 +67,8 @@ class Config:
6767
"egg_info",
6868
"--version",
6969
"download_libzim",
70+
"build_sdist",
71+
"sdist",
7072
)
7173

7274
@property
@@ -383,7 +385,7 @@ def can_sign_apple(self) -> bool:
383385
config = Config()
384386

385387

386-
def get_cython_extension() -> Extension:
388+
def get_cython_extension() -> list[Extension]:
387389
define_macros = []
388390
compiler_directives = {"language_level": "3"}
389391

@@ -614,7 +616,7 @@ def run(self):
614616

615617

616618
if len(sys.argv) == 1 or (
617-
len(sys.argv) == 2 and sys.argv[1] in config.buildless_commands # noqa: PLR2004
619+
len(sys.argv) >= 2 and sys.argv[1] in config.buildless_commands # noqa: PLR2004
618620
):
619621
ext_modules = []
620622
else:

0 commit comments

Comments
 (0)