diff --git a/Makefile b/Makefile index dd80957cae..243d3de824 100644 --- a/Makefile +++ b/Makefile @@ -3,6 +3,9 @@ SAM_CLI_TELEMETRY ?= 0 init: + pip install wheel + pip install "cython<3.0.0" pyyaml==5.4.1 --no-build-isolation + pip uninstall wheel cython --yes SAM_CLI_DEV=1 pip install -e '.[dev]' test: diff --git a/installer/pyinstaller/build-linux.sh b/installer/pyinstaller/build-linux.sh index 2b728866da..0da95c0814 100755 --- a/installer/pyinstaller/build-linux.sh +++ b/installer/pyinstaller/build-linux.sh @@ -76,6 +76,16 @@ cd .. echo "Installing Python Libraries" python3 -m venv venv ./venv/bin/pip install --upgrade pip + +# https://github.com/yaml/pyyaml/issues/724 +echo "Force cython package version to be lower than 3.x.x" +./venv/bin/pip install wheel +./venv/bin/pip install --no-build-isolation "cython<3.0.0" pyyaml==5.4.1 + +echo "Uninstall local cython package" +./venv/bin/pip uninstall wheel cython --yes +# end cython work around + ./venv/bin/pip install -r src/requirements/reproducible-linux.txt echo "Copying All Python Libraries" diff --git a/installer/pyinstaller/build-mac.sh b/installer/pyinstaller/build-mac.sh index 7a69a6b0a4..0ecdfaef3e 100644 --- a/installer/pyinstaller/build-mac.sh +++ b/installer/pyinstaller/build-mac.sh @@ -86,6 +86,16 @@ cd .. echo "Installing Python Libraries" /usr/local/bin/python3.8 -m venv venv ./venv/bin/pip install --upgrade pip + +# https://github.com/yaml/pyyaml/issues/724 +echo "Force cython package version to be lower than 3.x.x" +./venv/bin/pip install wheel +./venv/bin/pip install --no-build-isolation "cython<3.0.0" pyyaml==5.4.1 + +echo "Uninstall local cython package" +./venv/bin/pip uninstall wheel cython --yes +# end cython work around + ./venv/bin/pip install -r src/requirements/reproducible-mac.txt echo "Copying All Python Libraries"