File size: 3,081 Bytes
2c3c408
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
#!/bin/sh

# USAGE
#------
# 0) cd TileDB-Py (NOTE: root directory!)
# 1) docker build -f misc/pypi_linux/Dockerfile . -t wheel_builder
# 2) docker run -v `pwd`/misc/pypi_linux/wheels:/wheels -ti wheel_builder build.sh
#
# testing (e.g. using the official python docker images)
# - $ docker run -v `pwd`/misc/pypi_linux/wheels:/wheels --rm -ti python bash
# -- pip3 install /wheels/*cp37*.whl
# -- python3.7 -c "import tiledb; print(tiledb.libtiledb.version()) and assert tiledb.VFS().supports('s3')"
set -ex

export TILEDB_PY_REPO="/opt/TileDB-Py"

# build python37 wheel
cd /home/tiledb
git clone $TILEDB_PY_REPO TileDB-Py37
git -C TileDB-Py37 checkout $TILEDBPY_VERSION

cd /home/tiledb/TileDB-Py37
/opt/python/cp37-cp37m/bin/python3.7 -m pip install -r misc/requirements_wheel.txt
/opt/python/cp37-cp37m/bin/python3.7 setup.py build_ext bdist_wheel --tiledb=/usr/local
auditwheel repair dist/*.whl
/opt/python/cp37-cp37m/bin/python3.7 -m pip install wheelhouse/*.whl
cd tiledb/tests
#/opt/python/cp37-cp37m/bin/python3.7 -m unittest

# build python38 wheel
cd /home/tiledb
git clone $TILEDB_PY_REPO TileDB-Py38
git -C TileDB-Py38 checkout $TILEDBPY_VERSION

cd /home/tiledb/TileDB-Py38
/opt/python/cp38-cp38m/bin/python3.8 -m pip install -r misc/requirements_wheel.txt
/opt/python/cp38-cp38/bin/python3.8 setup.py build_ext bdist_wheel --tiledb=/usr/local
auditwheel repair dist/*.whl
/opt/python/cp38-cp38/bin/python3.8 -m pip install wheelhouse/*.whl
cd tiledb/tests

# build python39 wheel
cd /home/tiledb
git clone $TILEDB_PY_REPO TileDB-Py39
git -C TileDB-Py39 checkout $TILEDBPY_VERSION

cd /home/tiledb/TileDB-Py39
/opt/python/cp39-cp39m/bin/python3.9 -m pip install -r misc/requirements_wheel.txt
/opt/python/cp39-cp39/bin/python3.9 setup.py build_ext bdist_wheel --tiledb=/usr/local
auditwheel repair dist/*.whl
/opt/python/cp39-cp39/bin/python3.9 -m pip install wheelhouse/*.whl
cd tiledb/tests

# build python310 wheel
cd /home/tiledb
git clone $TILEDB_PY_REPO TileDB-Py310
git -C TileDB-Py310 checkout $TILEDBPY_VERSION

cd /home/tiledb/TileDB-Py310
/opt/python/cp310-cp310m/bin/python3.10 -m pip install -r misc/requirements_wheel.txt
/opt/python/cp310-cp310/bin/python3.10 setup.py build_ext bdist_wheel --tiledb=/usr/local
auditwheel repair dist/*.whl
/opt/python/cp310-cp310/bin/python3.10 -m pip install wheelhouse/*.whl
cd tiledb/tests

# build python311 wheel
cd /home/tiledb
git clone $TILEDB_PY_REPO TileDB-Py311
git -C TileDB-Py311 checkout $TILEDBPY_VERSION

cd /home/tiledb/TileDB-Py311
/opt/python/cp311-cp311m/bin/python3.11 -m pip install -r misc/requirements_wheel.txt
/opt/python/cp311-cp311/bin/python3.11 setup.py build_ext bdist_wheel --tiledb=/usr/local
auditwheel repair dist/*.whl
/opt/python/cp311-cp311/bin/python3.11 -m pip install wheelhouse/*.whl
cd tiledb/tests

# copy build products out
cp /home/tiledb/TileDB-Py37/wheelhouse/* /wheels
cp /home/tiledb/TileDB-Py38/wheelhouse/* /wheels
cp /home/tiledb/TileDB-Py39/wheelhouse/* /wheels
cp /home/tiledb/TileDB-Py310/wheelhouse/* /wheels
cp /home/tiledb/TileDB-Py311/wheelhouse/* /wheels