-
Notifications
You must be signed in to change notification settings - Fork 149
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
proxy: install-build-deps: Automate installation of required system p…
…ackages (#2555) * install-build-deps: Automate installation of required system packages These used to be listed in README.md; some notes on the various systems still remain there. The framework for this script is taken from the same script in [k]. This has been tested on Ubuntu 22.04 and recent Arch. The MacOS code from the [k] version has been tested on MacOS, and this is so similar (including the use of `stack`) that there should be no issues with it. The Arch support is untested, but is so simple it's hard to see what could go wrong. [k]: https://github.com/runtimeverification/k * Set Version: 1.0.666 * Set Version: 1.0.667 --------- Co-authored-by: Curt J. Sampson <[email protected]> Co-authored-by: devops <[email protected]>
- Loading branch information
1 parent
c7c8fe1
commit f11a268
Showing
5 changed files
with
135 additions
and
99 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,104 @@ | ||
#!/usr/bin/env bash | ||
# | ||
# Install OS packages containing dependencies required to build K. | ||
# | ||
set -Eeuo pipefail | ||
|
||
die() { local ec="$1"; shift; echo "ERROR: $@"; exit $ec; } | ||
|
||
try() { | ||
local command="$1"; shift | ||
local platform="$1"; shift | ||
|
||
echo "===== Checking for $command for platform $platform" | ||
$command --version >/dev/null 2>&1 || return 1 | ||
echo "----- Found platform $platform" | ||
inst_$platform | ||
} | ||
|
||
#################################################################### | ||
|
||
inst_Debian() { | ||
# On Ubuntu < 18.04, you'll need to skip `libsecp256k1-dev` and | ||
# instead build it from source (via our `Makefile`): | ||
# make libsecp256k1 | ||
|
||
echo '===== Debian packages:' | ||
sudo apt-get install -q \ | ||
bison \ | ||
build-essential \ | ||
clang-15 \ | ||
cmake \ | ||
curl \ | ||
flex \ | ||
g++ \ | ||
gcc \ | ||
libboost-test-dev \ | ||
libfmt-dev \ | ||
libgmp-dev \ | ||
libjemalloc-dev \ | ||
libmpfr-dev \ | ||
libsecp256k1-dev \ | ||
libstdc++-12-dev \ | ||
libtool \ | ||
libyaml-dev \ | ||
libz3-dev \ | ||
lld-15 \ | ||
llvm-15-tools \ | ||
m4 \ | ||
maven \ | ||
openjdk-17-jdk \ | ||
pkg-config \ | ||
python3 \ | ||
python3-dev \ | ||
z3 \ | ||
zlib1g-dev | ||
|
||
if stack --version >/dev/null 2>&1; then | ||
echo 'Using existing Haskell Stack installation.' | ||
else | ||
echo '===== Haskell Stack:' | ||
curl -sSL https://get.haskellstack.org/ | sh | ||
fi | ||
} | ||
|
||
inst_MacOS() { | ||
echo '===== Brew packages' | ||
brew tap runtimeverification/k | ||
brew install \ | ||
bison \ | ||
boost \ | ||
cmake \ | ||
flex \ | ||
fmt \ | ||
gcc \ | ||
gmp \ | ||
openjdk \ | ||
jemalloc \ | ||
libyaml \ | ||
llvm \ | ||
make \ | ||
maven \ | ||
mpfr \ | ||
pkg-config \ | ||
python \ | ||
secp256k1 \ | ||
stack \ | ||
zlib \ | ||
z3 | ||
} | ||
|
||
inst_Arch() { | ||
echo '===== Arch packages' | ||
sudo pacman -S \ | ||
base base-devel boost clang cmake crypto++ curl git gmp \ | ||
gflags jdk-openjdk jemalloc libsecp256k1 lld llvm maven \ | ||
mpfr poetry python stack yaml-cpp zlib | ||
} | ||
|
||
#################################################################### | ||
|
||
try apt-get Debian && exit 0 | ||
try brew MacOS && exit 0 | ||
try pacman Arch && exit 0 | ||
die 1 'Cannot find known platform. Your system appears to be unsupported.' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,7 +4,7 @@ build-backend = "poetry.core.masonry.api" | |
|
||
[tool.poetry] | ||
name = "kevm-pyk" | ||
version = "1.0.666" | ||
version = "1.0.667" | ||
description = "" | ||
authors = [ | ||
"Runtime Verification, Inc. <[email protected]>", | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -5,4 +5,4 @@ | |
if TYPE_CHECKING: | ||
from typing import Final | ||
|
||
VERSION: Final = '1.0.666' | ||
VERSION: Final = '1.0.667' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
1.0.666 | ||
1.0.667 |