-
Notifications
You must be signed in to change notification settings - Fork 220
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add pypy3.7 7.3.5 #1103
Merged
Merged
Add pypy3.7 7.3.5 #1103
Changes from all commits
Commits
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
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,70 @@ | ||
#!/bin/bash | ||
|
||
# Stop at any error, show all commands | ||
set -exuo pipefail | ||
|
||
# Get script directory | ||
MY_DIR=$(dirname "${BASH_SOURCE[0]}") | ||
|
||
# Get build utilities | ||
source $MY_DIR/build_utils.sh | ||
|
||
|
||
PYTHON_VERSION=$1 | ||
PYPY_VERSION=$2 | ||
PYPY_DOWNLOAD_URL=https://downloads.python.org/pypy | ||
|
||
|
||
function get_shortdir { | ||
local exe=$1 | ||
$exe -c 'import sys; print("pypy%d.%d-%d.%d.%d" % (sys.version_info[:2]+sys.pypy_version_info[:3]))' | ||
} | ||
|
||
|
||
mkdir -p /tmp | ||
cd /tmp | ||
|
||
case ${AUDITWHEEL_ARCH} in | ||
x86_64) PYPY_ARCH=linux64;; | ||
i686) PYPY_ARCH=linux32;; | ||
aarch64) PYPY_ARCH=aarch64;; | ||
*) echo "No PyPy for ${AUDITWHEEL_ARCH}"; exit 0;; | ||
esac | ||
|
||
TARBALL=pypy${PYTHON_VERSION}-v${PYPY_VERSION}-${PYPY_ARCH}.tar.bz2 | ||
TMPDIR=/tmp/${TARBALL/.tar.bz2//} | ||
PREFIX="/opt/_internal" | ||
|
||
mkdir -p ${PREFIX} | ||
|
||
fetch_source ${TARBALL} ${PYPY_DOWNLOAD_URL} | ||
|
||
# We only want to check the current tarball sha256sum | ||
grep " ${TARBALL}\$" ${MY_DIR}/pypy.sha256 > ${TARBALL}.sha256 | ||
# then check sha256 sum | ||
sha256sum -c ${TARBALL}.sha256 | ||
|
||
tar -xf ${TARBALL} | ||
|
||
# the new PyPy 3 distributions don't have pypy symlinks to pypy3 | ||
if [ ! -f "${TMPDIR}/bin/pypy" ]; then | ||
ln -s pypy3 ${TMPDIR}/bin/pypy | ||
fi | ||
|
||
# rename the directory to something shorter like pypy3.7-7.3.4 | ||
PREFIX=${PREFIX}/$(get_shortdir ${TMPDIR}/bin/pypy) | ||
mv ${TMPDIR} ${PREFIX} | ||
|
||
# add a generic "python" symlink | ||
if [ ! -f "${PREFIX}/bin/python" ]; then | ||
ln -s pypy ${PREFIX}/bin/python | ||
fi | ||
|
||
# remove debug symbols | ||
rm ${PREFIX}/bin/*.debug | ||
|
||
# We do not need the Python test suites | ||
find ${PREFIX} -depth \( -type d -a -name test -o -name tests \) | xargs rm -rf | ||
|
||
# We do not need precompiled .pyc and .pyo files. | ||
clean_pyc ${PREFIX} |
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,3 @@ | ||
85d83093b3ef5b863f641bc4073d057cc98bb821e16aa9361a5ff4898e70e8ee pypy3.7-v7.3.5-aarch64.tar.bz2 | ||
3dd8b565203d372829e53945c599296fa961895130342ea13791b17c84ed06c4 pypy3.7-v7.3.5-linux32.tar.bz2 | ||
9000db3e87b54638e55177e68cbeb30a30fe5d17b6be48a9eb43d65b3ebcfc26 pypy3.7-v7.3.5-linux64.tar.bz2 |
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
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Shouldn't these sanity checks be run on PyPy too? If they fail there is a problem with the PyPy build ...
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
can't run the sanity check of the
pipx.y
symlink in/usr/local/bin
since there are no symlink for PyPy pip in there. As mentioned in an earlier comment, going to remove those anyway.For sqlite3, this is specific to cpython being rebuilt from source with a specific version (well should be specific, this has been an issue before). Given PyPY comes as a full featured binary, this check isn't right (& fails because the embedded sqlite3 is version 3.28 or 3.29 - I don't remember exactly)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hmm. Is it documented somewhere what sqlite3 a specific python version expects? If cpython is statically linking to 3.35 that would suggest PyPy should as well.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The minimum sqlite3 version required by cpython is fairly low: https://github.com/python/cpython/blob/220dd80a2671f57486055955d5422163cf73ed33/Modules/_sqlite/module.c#L33
The default version in manylinux1 was even older than this requirement though:
It's been updated since then in order not to get issue reported because of CVE on older versions.
Windows/macOS installers of CPython also update sqlite3 regularly as noted in their release notes.