Skip to content

Commit a582290

Browse files
committed
fixing manylinux issues
1 parent 5234cd2 commit a582290

File tree

1 file changed

+20
-1
lines changed

1 file changed

+20
-1
lines changed

quaddtype/pyproject.toml

Lines changed: 20 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,18 +27,37 @@ test = [
2727
[tool.cibuildwheel]
2828
archs = ["auto64"]
2929
skip = ["*-musllinux*", "pp*", "cp36-*", "cp37-*", "cp38-*"]
30+
manylinux-x86_64-image = "manylinux2014"
3031
test-command = "pytest {project}/tests"
3132
test-extras = ["test"]
3233

3334
[tool.cibuildwheel.linux]
3435
before-all = """
36+
set -ex
3537
yum install -y wget &&
3638
wget https://repo.anaconda.com/miniconda/Miniconda3-latest-Linux-x86_64.sh -O miniconda.sh &&
3739
bash miniconda.sh -b -p $HOME/miniconda &&
3840
$HOME/miniconda/bin/conda install -y -c conda-forge sleef
3941
ls -l $HOME/miniconda/include/sleef.h
42+
echo "CFLAGS: $CFLAGS"
43+
echo "CXXFLAGS: $CXXFLAGS"
44+
echo "LD_LIBRARY_PATH: $LD_LIBRARY_PATH"
45+
echo "LIBRARY_PATH: $LIBRARY_PATH"
46+
g++ --version
47+
conda list sleef
4048
"""
41-
environment = {LD_LIBRARY_PATH = "$HOME/miniconda/lib:$LD_LIBRARY_PATH", LIBRARY_PATH = "$HOME/miniconda/lib:$LIBRARY_PATH", CFLAGS = "-I$HOME/miniconda/include $CFLAGS", CXXFLAGS = "-I$HOME/miniconda/include $CXXFLAGS", LDFLAGS = "-L$HOME/miniconda/lib $LDFLAGS"}
49+
environment = {
50+
LD_LIBRARY_PATH = "$HOME/miniconda/lib:$LD_LIBRARY_PATH",
51+
LIBRARY_PATH = "$HOME/miniconda/lib:$LIBRARY_PATH",
52+
CFLAGS = "-I$HOME/miniconda/include -fPIC $CFLAGS",
53+
CXXFLAGS = "-I$HOME/miniconda/include -fPIC $CXXFLAGS",
54+
LDFLAGS = "-L$HOME/miniconda/lib $LDFLAGS",
55+
AUDITWHEEL_PLAT = "manylinux2014_x86_64",
56+
AUDITWHEEL_EXTRA_LIB = "/usr/local/lib",
57+
AUDITWHEEL_SELINUX = "1"
58+
}
59+
60+
repair-wheel-command = "auditwheel repair -w {dest_dir} {wheel}"
4261

4362
[tool.cibuildwheel.macos]
4463
before-all = """

0 commit comments

Comments
 (0)