Skip to content
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

Use imath-32 in wheels #42

Draft
wants to merge 4 commits into
base: main
Choose a base branch
from
Draft
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
54 changes: 6 additions & 48 deletions wheels/config.sh
Original file line number Diff line number Diff line change
@@ -1,54 +1,12 @@
function build_simple2 {
local name=$1
local version=$2
local url=$3
local ext=$4
shift 4
if [ -e "${name}-stamp" ]; then
return
fi
local name_version="${name}-${version}"
local targz=${name_version}.$ext
fetch_unpack $url/$targz
(cd $name_version \
&& ((./configure --prefix=$BUILD_PREFIX $*) || (cat config.log && exit 1)) \
&& make \
&& make install)
touch "${name}-stamp"
echo "${name} is bundled with this wheel" >> doc/misc.rst
echo "Source code can be found at: $url/$targz" >> doc/misc.rst
echo "${name} license" >> doc/misc.rst
echo "===================" >> doc/misc.rst
}

function pre_build {
set -x
export PATH=$PATH:$BUILD_PREFIX/bin
if [ -n "$IS_OSX" ]; then
export CC="clang"
export CXX="clang++"
export CFLAGS="-arch x86_64"
export CXXFLAGS="-arch x86_64"
export LDFLAGS="-arch x86_64"
export MACOSX_DEPLOYMENT_TARGET="10.9"
export ABI=64
elif [[ "$PLAT" == "x86_64" ]]; then
export ABI=64
elif [[ "$PLAT" == "i686" ]]; then
export ABI=32
fi
echo "Bundled dependencies in the wheel" >> doc/misc.rst
build_simple2 gmp 6.1.2 https://gmplib.org/download/gmp tar.bz2 \
--enable-shared --disable-static --with-pic --enable-fat
pushd gmp-6.1.2
cat README >> ../doc/misc.rst
cat COPYING.LESSERv3 >> ../doc/misc.rst
echo "" >> ../doc/misc.rst
popd
build_simple2 isl 0.22.1 http://isl.gforge.inria.fr tar.gz \
--enable-shared --disable-static --with-int=gmp --with-gmp-prefix=$BUILD_PREFIX
pushd isl-0.22.1

pushd isl
echo "isl license" >> ../doc/misc.rst
cat LICENSE >> ../doc/misc.rst
echo "imath license" >> ../doc/misc.rst
echo "=============" >> ../doc/misc.rst
head -n 25 imath/imath.h >> ../doc/misc.rst
popd
}

Expand Down