From db8531037a998ce36ebccafd045ebfb2b677e55e Mon Sep 17 00:00:00 2001 From: shouzy <82171453+realshouzy@users.noreply.github.com> Date: Sun, 28 Apr 2024 01:02:38 +0200 Subject: [PATCH] Only `mypycify` when using `cypthon` --- setup.py | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/setup.py b/setup.py index dd7665a..b29416b 100644 --- a/setup.py +++ b/setup.py @@ -2,6 +2,7 @@ """Setup script.""" from __future__ import annotations +import sys from pathlib import Path from typing import Final @@ -21,8 +22,9 @@ def _get_py_files(path: Path = _PACKAGE_ROOT) -> list[str]: return py_files -setup( - ext_modules=mypycify( - _get_py_files(), - ), -) +if sys.implementation.name == "cpython": + setup( + ext_modules=mypycify( + _get_py_files(), + ), + )