mdickinson / bigfloat

Python wrapper for MPFR, providing high-precision floating-point arithmetic
GNU Lesser General Public License v3.0
41 stars 11 forks source link

Build: Allow building without cython installed (based on pre generated mpfr.c) #118

Open LucasMahieu opened 6 months ago

LucasMahieu commented 6 months ago

In case cython is not installed on the system, fallback on building the wheel with the mpfr.c.

This file was generated and added to the git (instead of being re generated thanks to cython).

This commits helps to express dependencies of a package, on bigfloat, from github repo. Without the guarantie that Cython is installed on the systeme.

LucasMahieu commented 6 months ago

This PR goals is to be able to depend on bigfloat and able to be able to get bigfloat installed (thanks to pip, pipenv, etc) in all cases : If cython < 3 is installed if cython > 3 is installed if no cython is installed at all

The issue I was facing is that :

This commit solve this issue

EDIT: Note that since there is no 0.5.0 pypi package version available, we need to pip install from git directly : pip install git+https....