Currently, importing setuptools.command.build_ext pulls in a Cython dependency if it finds any Cython on a system.
That is not in all cases ideal, e.g. in a package manager (such as spack) or a virtual python environment that does not have a cython installed, while at the same time a system-wide Cython exists. In such a setup, nearly always binary incompatibilities with the system-wide python install will occur.
Is there any way to express "try not to import cython (even when found)" to setuptools?
Currently, importing
setuptools.command.build_extpulls in aCythondependency if it finds any Cython on a system.That is not in all cases ideal, e.g. in a package manager (such as spack) or a virtual python environment that does not have a cython installed, while at the same time a system-wide Cython exists. In such a setup, nearly always binary incompatibilities with the system-wide python install will occur.
Is there any way to express "try not to import cython (even when found)" to setuptools?