-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* All the Mac wheels are being built on custom m1 runner, * We use `arch -x86_64` and `arch -arm64` to switch / emulate architectures, * We first build non-python dependencies and then branch building wheels for each python version, * M1 builds start from python 3.8+
- Loading branch information
Showing
8 changed files
with
117 additions
and
92 deletions.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
#!/bin/bash | ||
set -e | ||
|
||
cd $AIM_DEP_DIR | ||
curl https://sourceware.org/pub/bzip2/bzip2-1.0.8.tar.gz -o bzip2-1.0.8.tar.gz | ||
tar zxvf bzip2-1.0.8.tar.gz | ||
cd bzip2-1.0.8/ | ||
make CFLAGS="-fPIC" CXXFLAGS="-fPIC" | ||
make install PREFIX=.. | ||
cd ../ | ||
rm -rf bzip2-1.0.8 bzip2-1.0.8.tar.gz |
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,11 @@ | ||
#!/bin/bash | ||
set -e | ||
|
||
cd $AIM_DEP_DIR | ||
curl -L https://github.com/lz4/lz4/archive/v1.9.3.tar.gz -o lz4-1.9.3.tar.gz | ||
tar zxvf lz4-1.9.3.tar.gz | ||
cd lz4-1.9.3 | ||
make CFLAGS="-fPIC" CXXFLAGS="-fPIC" | ||
make PREFIX=$PWD/.. install | ||
cd .. | ||
rm -rf lz4-1.9.3 lz4-1.9.3.tar.gz |
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,15 @@ | ||
#!/bin/bash | ||
set -e | ||
|
||
cd $AIM_DEP_DIR | ||
rm lib/*.dylib | ||
curl -L https://github.com/facebook/rocksdb/archive/6.29.fb.tar.gz -o rocksdb-6.29.fb.tar.gz | ||
tar zxvf rocksdb-6.29.fb.tar.gz | ||
cd rocksdb-6.29.fb | ||
LIBRARY_PATH=$AIM_DEP_DIR/lib PORTABLE=1 make shared_lib PLATFORM_SHARED_VERSIONED=false EXTRA_CXXFLAGS="-fPIC -I$AIM_DEP_DIR/include" USE_RTTI=0 DEBUG_LEVEL=0 -j12 | ||
strip -S librocksdb.dylib | ||
install_name_tool -id @rpath/librocksdb.dylib librocksdb.dylib | ||
cp librocksdb.dylib $AIM_DEP_DIR/lib | ||
LIBRARY_PATH=$AIM_DEP_DIR/lib PREFIX="$AIM_DEP_DIR" PORTABLE=1 make install-headers PLATFORM_SHARED_VERSIONED=false EXTRA_CXXFLAGS="-fPIC -I$AIM_DEP_DIR/include" USE_RTTI=0 DEBUG_LEVEL=0 -j12 | ||
cd .. | ||
rm -rf rocksdb-6.29.fb rocksdb-6.29.fb.tar.gz |
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,14 @@ | ||
#!/bin/bash | ||
set -e | ||
|
||
cd $AIM_DEP_DIR | ||
curl -L https://github.com/google/snappy/archive/1.1.8.tar.gz -o snappy-1.1.8.tar.gz | ||
tar zxvf snappy-1.1.8.tar.gz | ||
cd snappy-1.1.8 | ||
mkdir build | ||
cd build | ||
$CMAKE -DCMAKE_INSTALL_PREFIX=../.. CFLAGS="-fPIC" CXXFLAGS="-fPIC" -DCMAKE_POSITION_INDEPENDENT_CODE=ON .. | ||
make | ||
make install | ||
cd ../.. | ||
rm -rf snappy-1.1.8 snappy-1.1.8.tar.gz |
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,12 @@ | ||
#!/bin/bash | ||
set -e | ||
|
||
cd $AIM_DEP_DIR | ||
curl -L https://www.zlib.net/fossils/zlib-1.2.11.tar.gz -o zlib-1.2.11.tar.gz | ||
tar zxvf zlib-1.2.11.tar.gz | ||
cd zlib-1.2.11/ | ||
./configure | ||
make CFLAGS="-fPIC" CXXFLAGS="-fPIC" | ||
make install prefix=.. | ||
cd ../ | ||
rm -rf zlib-1.2.11 zlib-1.2.11.tar.gz |
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,11 @@ | ||
#!/bin/bash | ||
set -e | ||
|
||
cd $AIM_DEP_DIR | ||
curl -L https://github.com/facebook/zstd/archive/v1.1.3.tar.gz -o zstd-1.1.3.tar.gz | ||
tar zxvf zstd-1.1.3.tar.gz | ||
cd zstd-1.1.3 | ||
make CFLAGS="-fPIC" CXXFLAGS="-fPIC" | ||
make install PREFIX=$PWD/.. | ||
cd .. | ||
rm -rf zstd-1.1.3 zstd-1.1.3.tar.gz |
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