Adding manylinux2010 github action
- Validates that the manylinux2010 environment can build pycapnp - Handle lib and lib64 cases - Has patch for aligned_alloc symbol (not available prior to glibc 2.16) https://github.com/capnproto/capnproto/issues/743 - Fixes #197 - Should be ready to prepare a v1.0.0b1 release
This commit is contained in:
@@ -11,6 +11,7 @@
|
||||
# for original project.
|
||||
|
||||
|
||||
import fileinput
|
||||
import os
|
||||
import shutil
|
||||
import tarfile
|
||||
@@ -91,3 +92,14 @@ def fetch_libcapnp(savedir, url=None):
|
||||
else:
|
||||
cpp_dir = os.path.join(with_version, 'c++')
|
||||
shutil.move(cpp_dir, dest)
|
||||
|
||||
# XXX (HaaTa): There's a bug in capnproto-0.7.0 on CentOS 6 (or any glibc older than 2.16)
|
||||
# This patches the issue
|
||||
with fileinput.FileInput(os.path.join(dest, 'src', 'kj', 'table.c++'), inplace=True, backup='.bak') as f:
|
||||
for line in f:
|
||||
print(
|
||||
line.replace(
|
||||
'__APPLE__ || __BIONIC__', '__APPLE__ || __BIONIC__ || (defined(__GLIBC__) && (__GLIBC__ == 2) && (__GLIBC_MINOR__ < 16))'
|
||||
),
|
||||
end=''
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user