From 6f31056c09fbf41f6a72145a734b9d6a32de0d90 Mon Sep 17 00:00:00 2001 From: giladchase Date: Tue, 27 Jun 2023 11:55:29 +0300 Subject: [PATCH] Remove deprecated generation scripts for native ext - now using bazel (#670) --- scripts/build.sh | 6 ------ scripts/build_wheels.sh | 41 ----------------------------------------- 2 files changed, 47 deletions(-) delete mode 100755 scripts/build.sh delete mode 100755 scripts/build_wheels.sh diff --git a/scripts/build.sh b/scripts/build.sh deleted file mode 100755 index 2eeac32d32..0000000000 --- a/scripts/build.sh +++ /dev/null @@ -1,6 +0,0 @@ -#!/bin/bash -set -ex - -root_dir="$(cd `dirname $0` && pwd -P)/../" - -docker run --rm -v $root_dir:/io quay.io/pypa/manylinux2014_x86_64 bash /io/scripts/build_wheels.sh diff --git a/scripts/build_wheels.sh b/scripts/build_wheels.sh deleted file mode 100755 index c0297b9a20..0000000000 --- a/scripts/build_wheels.sh +++ /dev/null @@ -1,41 +0,0 @@ -#!/bin/bash -set -e - -pushd /io/crates/native_blockifier/ - -# Install crate dependencies. -yum -y install centos-release-scl -yum -y install openssl-devel llvm-toolset-7.0 - - -# Install Rust. -curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y - -export PATH="$HOME/.cargo/bin:$PATH" - -# Required for libclang > 3.9, by default there is only clang 3.4 in this image. -source /opt/rh/llvm-toolset-7.0/enable - -cpython_bins=$(echo /opt/python/cp{37,38,39,310}*/bin) -pypy_bins=$(echo /opt/python/pp{37,38,39}*/bin) - -# Compile wheels. -for py_bin in ${cpython_bins} ${pypy_bins}; do - rm -rf build/ - "${py_bin}/pip" install -U setuptools setuptools-rust wheel - "${py_bin}/pip" wheel ./ -w ./dist/ --no-deps -done - -# Bundle external shared libraries into the wheels. -for whl in dist/*{cp37,cp38,cp39,cp310,pp37,pp38,pp39}*.whl; do - auditwheel repair "$whl" -w ./dist/ -done - -# Install packages and test. -for py_bin in ${cpython_bins} ${pypy_bins}; do - "${py_bin}/pip" install native_blockifier -f /io/dist/ - echo "Testing with $("${py_bin}/python" --version) ..." - "${py_bin}/python" -c "import native_blockifier; print('native_blockifier import success')" -done - -popd