Skip to content

Commit d1aa387

Browse files
committed
cibw changes
1 parent 64cd6d0 commit d1aa387

File tree

2 files changed

+28
-30
lines changed

2 files changed

+28
-30
lines changed

.github/workflows/manylinux.yaml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,14 +22,13 @@ jobs:
2222
export OLD_SKIA=1
2323
export BUILD_GLFW=1
2424
export BUILD_FREETYPE=0
25-
export CXXFLAGS+=" -D OLD_SKIA "
2625
export CPPFLAGS="-I/usr/local/include ${CPPFLAGS:-}"
2726
export LDFLAGS="-L/usr/local/lib ${LDFLAGS:-}"
2827
bash ci/manylinux-build-deps
2928
3029
CIBW_BEFORE_BUILD_LINUX: |
3130
python -m pip install numpy>=1.19.3 "cython>=3.0.0,<3.1"
32-
python -m pip install --no-binary=pysam pysam>=0.23.0
31+
python -m pip install --no-binary=pysam --force-reinstall --no-cache-dir pysam>=0.23.0
3332
3433
CIBW_REPAIR_WHEEL_COMMAND_LINUX: "auditwheel -v repair -w {dest_dir} {wheel}"
3534
CIBW_TEST_COMMAND: bash {package}/ci/manylinux-test {wheel}

ci/manylinux-build-deps

Lines changed: 27 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ yum install -y fontconfig-devel libjpeg-turbo-devel libpng-devel \
2525
libuuid-devel librsvg2-devel \
2626
libX11-devel mesa-libEGL-devel mesa-libGLES-devel \
2727
wayland-devel wayland-protocols-devel \
28-
harfbuzz brotli-devel
28+
harfbuzz brotli-devel, gperf
2929

3030
# GLFW
3131
if [[ "$BUILD_GLFW" == "1" ]]; then
@@ -108,34 +108,33 @@ if [[ "$BUILD_FREETYPE" == "1" ]]; then
108108
./configure --prefix=/usr/local \
109109
--enable-static \
110110
--enable-shared \
111-
--with-freetype-config=/usr/local/bin/freetype-config \
112111
FREETYPE_CFLAGS="$FREETYPE_CFLAGS" \
113112
FREETYPE_LIBS="$FREETYPE_LIBS"
114113

115114
make -j3 && make install
116115

117-
# Verify fontconfig is using our FreeType
118-
echo "fontconfig dependencies:"
119-
ldd /usr/local/lib/libfontconfig.so | grep freetype || echo "No freetype dependency found"
120-
121-
cd ../
122-
123-
# Step 3: Update system library paths to prefer our versions
124-
echo "Setting up library paths..."
125-
126-
# Create symlinks so the system finds our libraries first
127-
ln -sf /usr/local/lib/libfreetype.so.6 /usr/lib64/libfreetype.so.6 || true
128-
ln -sf /usr/local/lib/libfreetype.so /usr/lib64/libfreetype.so || true
129-
ln -sf /usr/local/lib/libfontconfig.so.1 /usr/lib64/libfontconfig.so.1 || true
130-
ln -sf /usr/local/lib/libfontconfig.so /usr/lib64/libfontconfig.so || true
131-
132-
# Update ld cache
133-
echo "/usr/local/lib" > /etc/ld.so.conf.d/custom-libs.conf
134-
ldconfig
135-
136-
# Set build environment
137-
export PKG_CONFIG_PATH="/usr/local/lib/pkgconfig:$PKG_CONFIG_PATH"
138-
export LD_LIBRARY_PATH="/usr/local/lib:$LD_LIBRARY_PATH"
116+
# # Verify fontconfig is using our FreeType
117+
# echo "fontconfig dependencies:"
118+
# ldd /usr/local/lib/libfontconfig.so | grep freetype || echo "No freetype dependency found"
119+
#
120+
# cd ../
121+
#
122+
# # Step 3: Update system library paths to prefer our versions
123+
# echo "Setting up library paths..."
124+
#
125+
# # Create symlinks so the system finds our libraries first
126+
# ln -sf /usr/local/lib/libfreetype.so.6 /usr/lib64/libfreetype.so.6 || true
127+
# ln -sf /usr/local/lib/libfreetype.so /usr/lib64/libfreetype.so || true
128+
# ln -sf /usr/local/lib/libfontconfig.so.1 /usr/lib64/libfontconfig.so.1 || true
129+
# ln -sf /usr/local/lib/libfontconfig.so /usr/lib64/libfontconfig.so || true
130+
#
131+
# # Update ld cache
132+
# echo "/usr/local/lib" > /etc/ld.so.conf.d/custom-libs.conf
133+
# ldconfig
134+
#
135+
# # Set build environment
136+
# export PKG_CONFIG_PATH="/usr/local/lib/pkgconfig:$PKG_CONFIG_PATH"
137+
# export LD_LIBRARY_PATH="/usr/local/lib:$LD_LIBRARY_PATH"
139138

140139
else
141140
yum install -y freetype-devel
@@ -160,15 +159,15 @@ ls -lh ./gwplot
160159

161160
echo "=== DEBUGGING LIBGW SYMBOLS ==="
162161
echo "Checking if FT_Get_Color_Glyph_Layer is in libgw:"
163-
nm -D libgw/libgw.so | grep FT_Get_Color_Glyph_Layer || echo "Symbol NOT found in libgw"
162+
nm -D gw/libgw/libgw.so | grep FT_Get_Color_Glyph_Layer || echo "Symbol NOT found in libgw"
164163

165164
echo "All FreeType symbols in libgw:"
166-
nm -D libgw/libgw.so | grep "^[0-9a-f]* [TW] FT_" | head -10 || echo "No FreeType symbols found"
165+
nm -D gw/libgw/libgw.so | grep "^[0-9a-f]* [TW] FT_" | head -10 || echo "No FreeType symbols found"
167166

168167
echo "libgw dependencies:"
169-
ldd libgw/libgw.so | grep freetype || echo "No freetype dependency"
168+
ldd gw/libgw/libgw.so | grep freetype || echo "No freetype dependency"
170169

171170
echo "fontconfig dependency:"
172-
ldd libgw/libgw.so | grep fontconfig || echo "No fontconfig dependency"
171+
ldd gw/libgw/libgw.so | grep fontconfig || echo "No fontconfig dependency"
173172

174173
echo "MANYLINUX-DEPS DONE"

0 commit comments

Comments
 (0)