Build attach_linux_*.so for manylinux1 using the official containers from PyPA.

This commit is contained in:
Pavel Minaev 2021-08-19 18:01:51 -07:00
parent 2a2c371d98
commit d9ca878cd2
4 changed files with 13 additions and 0 deletions

View file

@ -1,6 +1,7 @@
@echo off
pushd %~dp0
rd /s /q build dist
del /s /q *.pyc
del /s /q *.pyo
for /d /r %%i in (__pycache__.*) do rd "%%i"
@ -8,8 +9,10 @@ popd
pushd %~dp0\src
del /s /q *.pyd
del /s /q *-linux-gnu.so
popd
pushd %~dp0\tests
del /s /q *.pyd
del /s /q *-linux-gnu.so
popd

View file

@ -0,0 +1,10 @@
:: WARNING: manylinux1 images are based on CentOS 5, which requires vsyscall to be available on
:: the host. For any recent version of Linux, this requires passing vsyscall=emulate during boot.
:: For WSL, add the following to your .wslconfig:
::
:: [wsl2]
:: kernelCommandLine = vsyscall=emulate
docker run --rm -v %~dp0/..:/src quay.io/pypa/manylinux1_x86_64 g++ -std=c++11 -shared -o /src/attach_linux_amd64.so -fPIC -nostartfiles /src/linux_and_mac/attach.cpp
docker run --rm -v %~dp0/..:/src quay.io/pypa/manylinux1_i686 g++ -std=c++11 -shared -o /src/attach_linux_x86.so -fPIC -nostartfiles /src/linux_and_mac/attach.cpp