Skip to content

Commit

Permalink
Install cython and pyyaml together
Browse files Browse the repository at this point in the history
  • Loading branch information
lucashuy committed Jul 17, 2023
1 parent 203b45b commit 737605f
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 2 deletions.
3 changes: 3 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,10 @@
SAM_CLI_TELEMETRY ?= 0

init:
pip install wheel
pip install "cython<3.0.0" pyyaml==5.4.1 --no-build-isolation
SAM_CLI_DEV=1 pip install -e '.[dev]'
pip uninstall cython --yes

test:
# Run unit tests
Expand Down
3 changes: 2 additions & 1 deletion installer/pyinstaller/build-linux.sh
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,8 @@ python3 -m venv venv

# https://github.com/yaml/pyyaml/issues/724
echo "Force cython package version to be lower than 3.x.x"
./venv/bin/pip install --no-build-isolation "cython<3.0.0"
./venv/bin/pip install wheel
./venv/bin/pip install --no-build-isolation "cython<3.0.0" pyyaml==5.4.1

./venv/bin/pip install -r src/requirements/reproducible-linux.txt

Expand Down
3 changes: 2 additions & 1 deletion installer/pyinstaller/build-mac.sh
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,8 @@ echo "Installing Python Libraries"

# https://github.com/yaml/pyyaml/issues/724
echo "Force cython package version to be lower than 3.x.x"
./venv/bin/pip install --no-build-isolation "cython<3.0.0"
./venv/bin/pip install wheel
./venv/bin/pip install --no-build-isolation "cython<3.0.0" pyyaml==5.4.1

./venv/bin/pip install -r src/requirements/reproducible-mac.txt

Expand Down

0 comments on commit 737605f

Please sign in to comment.