Skip to content

Commit

Permalink
Builds.
Browse files Browse the repository at this point in the history
  • Loading branch information
jamadden committed Jun 27, 2023
1 parent fb35f52 commit 934974f
Show file tree
Hide file tree
Showing 2 changed files with 34 additions and 6 deletions.
3 changes: 3 additions & 0 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -92,6 +92,9 @@ jobs:
exclude:
- os: macos-latest
python-version: pypy-3.9
# Get an error importing _bz2 on macos/3.7
- os: macos-latest
python-version: 3.7
steps:
- name: checkout
uses: actions/checkout@v3
Expand Down
37 changes: 31 additions & 6 deletions scripts/releases/make-manylinux
Original file line number Diff line number Diff line change
Expand Up @@ -21,11 +21,11 @@ export PIP_NO_PYTHON_VERSION_WARNING=1
export PIP_NO_WARN_SCRIPT_LOCATION=1

# Build configuration.
# Temp disabled ccache for 3.3.1.
# export CC="ccache gcc"
# export CXX="ccache g++"
# export LDCXXSHARED="ccache g++ -shared"
# export LDSHARED="ccache gcc -shared"

export CC="ccache gcc"
export CXX="ccache g++"
export LDCXXSHARED="ccache g++ -shared"
export LDSHARED="ccache gcc -shared"
export CCACHE_NOCPP2=true
export CCACHE_SLOPPINESS=file_macro,time_macros,include_file_ctime,include_file_mtime
export CCACHE_NOHASHDIR=true
Expand All @@ -36,6 +36,23 @@ export BUILD_LIBS=$HOME/.libs
# Share the ccache directory
export CCACHE_DIR="/ccache"

# Disable some warnings produced by libev especially and also some Cython generated code.
# Note that changing the value of these variables invalidates configure caches

GEVENT_WARNFLAGS="-Wno-strict-aliasing -Wno-comment -Wno-unused-value -Wno-unused-but-set-variable -Wno-sign-compare -Wno-parentheses -Wno-unused-function -Wno-tautological-compare -Wno-strict-prototypes -Wno-return-type -Wno-misleading-indentation"
OPTIMIZATION_FLAGS="-pipe"
if [ "$DOCKER_IMAGE" == "quay.io/pypa/manylinux2014_aarch64" -a -n "$GITHUB_ACTIONS" ] || [ "$DOCKER_IMAGE" == "quay.io/pypa/manylinux2014_ppc64le" -a -n "$GITHUB_ACTIONS" ] ; then
# Compiling with -Ofast is a no-go because of the regression it causes (#1864).
# The default settings have -O3, and adding -Os doesn't help much. So maybe -O1 will.
echo "Compiling with -O1"
OPTIMIZATION_FLAGS="-pipe -O1"
SLOW_BUILD=1
else
echo "Compiling with -O3"
OPTIMIZATION_FLAGS="-pipe -O3"
fi
export CFLAGS="$OPTIMIZATION_FLAGS $GEVENT_WARNFLAGS"

if [ -d /RelStorage -a -d /opt/python ]; then
# Running inside docker

Expand All @@ -57,7 +74,15 @@ if [ -d /RelStorage -a -d /opt/python ]; then

if [ -e /usr/bin/yum ]; then
# manylinux
yum -y install ccache
# Some images/archs (specificaly 2014_aarch64) don't have ccache;
# This also seems to have vanished for manylinux_2010 x64/64 after November 30
# 2020 when the OS went EOL and the package repos switched to the "vault"
if [ -n "$SLOW_BUILD" ] ; then
# This provides access to ccache for the 2014 image
echo Installing epel
rpm -Uvh https://dl.fedoraproject.org/pub/epel/7/x86_64/Packages/e/epel-release-7-14.noarch.rpm
fi
yum -y install ccache || export CC=gcc LDSHARED="gcc -shared" LDCXXSHARED="gcc -shared"
fi
if [ -e /sbin/apk ]; then
# musllinux
Expand Down

0 comments on commit 934974f

Please sign in to comment.