- ccache --show-stats || true
- python3 -m venv --system-site-packages .venv
- . .venv/bin/activate
- - pip install pytest-xdist==3.3.1 pytest==7.3.1 twine cython
+ - pip install pytest-xdist==3.3.1 pytest==7.3.1
script:
- . .venv/bin/activate
- IEEE754FPU_PATH="$(pwd)"
- git clone --depth 1 --recursive -b v0.6.0 https://github.com/billzorn/sfpy.git sfpy
- pushd sfpy
+ - git apply "$IEEE754FPU_PATH"/sfpy.patch
- pushd berkeley-softfloat-3
- git apply "$IEEE754FPU_PATH"/berkeley-softfloat.patch
- popd
- git apply ../softposit_sfpy_build.patch
- git apply "$IEEE754FPU_PATH"/SoftPosit.patch
- popd
+ - pip install -r requirements.txt
- make lib -j$(nproc)
- make cython -j$(nproc)
- make wheel -j$(nproc)
there is some weirdness in x86 IEEE754 implementations when it comes
to FP16 non-canonical NaNs.
+The following modifications are required to sfpy:
+
+ cd /path/to/sfpy
+ git apply /path/to/ieee754fpu/sfpy.patch
+
The following modifications are required to the sfpy berkeley-softfloat-3
submodule: