Skip to content

Commit d3ef8c8

Browse files
committed
Make: Require serial package for parallel PyPI packages
1 parent 52c90da commit d3ef8c8

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

setup.py

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -393,6 +393,12 @@ def windows_settings(use_cpp: bool = False) -> Tuple[List[str], List[str], List[
393393
else:
394394
__description__ = "Search, hash, sort, fingerprint, and fuzzy-match strings faster via SWAR, SIMD, and GPGPU"
395395

396+
# Ensure multi-backend packages depend on the base CPython module
397+
install_requires = []
398+
if sz_target != "stringzilla":
399+
# Keep versions in lockstep to ensure ABI compatibility
400+
install_requires = [f"stringzilla=={__version__}"]
401+
396402
setup(
397403
name=__lib_name__,
398404
version=__version__,
@@ -433,4 +439,5 @@ def windows_settings(use_cpp: bool = False) -> Tuple[List[str], List[str], List[
433439
packages=find_packages(),
434440
entry_points=entry_points,
435441
cmdclass=command_class,
442+
install_requires=install_requires,
436443
)

0 commit comments

Comments
 (0)