Skip to content

Commit

Permalink
compile the latest pandas only on newer pypys, else the compilation fail
Browse files Browse the repository at this point in the history
  • Loading branch information
antocuni committed Aug 10, 2018
1 parent 6e20f9a commit e282c7b
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion scripts/build_wheels.sh
Expand Up @@ -5,6 +5,7 @@
#set -e -x
set -e

PYPY_VERSION="${PYPY/pypy*-/}"
TARGET=$1
TARGETDIR=/pypy-wheels/wheelhouse/$TARGET

Expand All @@ -15,10 +16,17 @@ packages=(
psutil
scipy
scipy==1.0.0
pandas
pandas==0.20.3
)

# the latest version of pandas work only on new pypys. This logic starts to be
# a bit too complex, we should probably write it in something better than bash
# :(
if [[ "$PYPY_VERSION" > "6.0" ]]
then
packages+=(pandas)
fi

# Compile the wheels, for all pypys found inside /opt/
echo "Compiling wheels"
echo "TARGETDIR: $TARGETDIR"
Expand Down

0 comments on commit e282c7b

Please sign in to comment.