Skip to content

Commit f3af6aa

Browse files
committed
add python3 formula
1 parent 6bc4d42 commit f3af6aa

File tree

1 file changed

+17
-17
lines changed

1 file changed

+17
-17
lines changed

builds/runtimes/python3

Lines changed: 17 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -10,24 +10,24 @@ OUT_PREFIX=$1
1010
dep_formula=${0#$WORKSPACE_DIR/} # this is the original script, e.g. pypy-5.3.1
1111
dep_name=$(basename $BASH_SOURCE) # this is us
1212
dep_version=${dep_formula##*"/${dep_name}-"} # "subtract" our name from full version name
13-
dep_package=${dep_name}-${dep_version} # it's always "Python-…"
14-
dep_dirname=${dep_package}-linux64
15-
dep_archive_name=${dep_dirname}.tar.bz2
13+
dep_package=$(echo $dep_name | tr p P)-${dep_version} # it's always "Python-…"
14+
dep_dirname=${dep_package}-linux64 # this is uppercased
15+
dep_archive_name=${dep_dirname}.tar.bz2 # this is uppercased too
1616
dep_url=https://python.org/ftp/python/${dep_version}/${dep_package}.tgz
1717

1818

19-
echo "Installing necesary sqlite headers"
20-
# install the necessary sqlite headers
21-
apt-get update
22-
apt-get install -y libsqlite3-dev
19+
# echo "Installing necesary sqlite headers"
20+
# # install the necessary sqlite headers
21+
# apt-get update
22+
# apt-get install -y libsqlite3-dev
2323

24-
# # Old way of installing sqlite
25-
# # shellcheck source=bin/utils
26-
# source "$BIN_DIR/steps/sqlite3"
24+
# Old way of installing sqlite
25+
# shellcheck source=bin/utils
26+
source "$BIN_DIR/steps/sqlite3"
2727

28-
# sqlite3_version
29-
# echo "Setting up SQLite3 Headers for $SQLITE3_VERSION"
30-
# sqlite3_install "$OUT_PREFIX" "$SQLITE3_VERSION" 1
28+
sqlite3_version
29+
echo "Setting up SQLite3 Headers for $SQLITE3_VERSION"
30+
sqlite3_install "$OUT_PREFIX" "$SQLITE3_VERSION" 1
3131

3232
echo "Building Python 3..."
3333

@@ -49,8 +49,8 @@ LOCATION=${OUT_PREFIX%?}
4949

5050
ln $LOCATION/bin/python3 $LOCATION/bin/python
5151

52-
# copy over sqlite3 headers
53-
cp "/usr/include/sqlite3"* "$LOCATION/include/"
52+
# # copy over sqlite3 headers
53+
# cp "/usr/include/sqlite3"* "$LOCATION/include/"
5454

55-
# create generic .so symlink against stack image
56-
ln -s "/usr/lib/x86_64-linux-gnu/libsqlite3.so.0" "$LOCATION/lib/libsqlite3.so"
55+
# # create generic .so symlink against stack image
56+
# ln -s "/usr/lib/x86_64-linux-gnu/libsqlite3.so.0" "$LOCATION/lib/libsqlite3.so"

0 commit comments

Comments
 (0)