-
Notifications
You must be signed in to change notification settings - Fork 214
Expand file tree
/
Copy pathdep_pip3.sh
More file actions
executable file
·36 lines (28 loc) · 930 Bytes
/
dep_pip3.sh
File metadata and controls
executable file
·36 lines (28 loc) · 930 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
#!/bin/bash
set -e
# echo python version
echo "python3:"
python3 --version
which python3
echo "pip3:"
pip3 --version
which pip3
if [ -n "$BASH_VERSION" ]; then
SCRIPT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
elif [ -n "$ZSH_VERSION" ]; then
SCRIPT_DIR="$(cd "$(dirname "${(%):-%x}")" && pwd)"
fi
pip install uv
# The requirements.txt is generated by command:
# uv pip compile pyproject.toml -o ./dev-support/requirements.txt
uv pip sync "${SCRIPT_DIR}/requirements.txt" --python $(which python3)
uv pip list
# set global solc version which is required by execution-spec-tests
solc-select use 0.8.24 --always-install
# TODO cross platform
#yum install clang snappy snappy-devel zlib zlib-devel bzip2 bzip2-devel lz4-devel
# wget https://github.com/facebook/zstd/archive/v1.1.3.tar.gz
# mv v1.1.3.tar.gz zstd-1.1.3.tar.gz
# tar zxvf zstd-1.1.3.tar.gz
# cd zstd-1.1.3
# make && sudo make install