Building boost-python for pyodide/emscripten

fxcoudert--- via Boost <[email protected]>
Newsgroups gmane.comp.lib.boost.devel
Message-ID <[email protected]>
Hello,

I'm working on adding boost-python to the pyodide distribution (https://github.com/pyodide/pyodide-recipes/pull/513), i.e., compile boost-python with emscripten. My bootstrap command is: ./bootstrap.sh --prefix=${INSTALL_DIR} --with-libraries=python --with-python=python$PYMAJOR.$PYMINOR
It seems to detect the Python install in the correct env:

Detecting Python version... 3.13                                                
Detecting Python root... /home/runner/miniconda3/envs/pyodide-env               

The b2 command is a bit more complex, but it works for a lot of other boost libraries:

    ./b2 variant=release toolset=clang-emscripten link=static threading=single --disable-icu \
      cxxflags="$SIDE_MODULE_CXXFLAGS -fwasm-exceptions -DBOOST_SP_DISABLE_THREADS=1" \
      cflags="$SIDE_MODULE_CFLAGS -fwasm-exceptions -DBOOST_SP_DISABLE_THREADS=1" \
      linkflags="-fpic $SIDE_MODULE_LDFLAGS" \
      python=$PYMAJOR.$PYMINOR \
      --layout=system -j"${PYODIDE_JOBS:-3}" --prefix=${INSTALL_DIR} \
      -d2 install

It says:

    - python                   : building                                       

which seems good, but then the only thing it installs are cmake files:

/home/runner/work/pyodide-recipes/pyodide-recipes/packages/.libs                
/home/runner/work/pyodide-recipes/pyodide-recipes/packages/.libs/lib            
/home/runner/work/pyodide-recipes/pyodide-recipes/packages/.libs/lib/cmake      
/home/runner/work/pyodide-recipes/pyodide-recipes/packages/.libs/lib/cmake/Boost
-1.84.0                                                                         
/home/runner/work/pyodide-recipes/pyodide-recipes/packages/.libs/lib/cmake/Boost
-1.84.0/BoostConfigVersion.cmake                                                
/home/runner/work/pyodide-recipes/pyodide-recipes/packages/.libs/lib/cmake/Boost
-1.84.0/BoostConfig.cmake                                                       
/home/runner/work/pyodide-recipes/pyodide-recipes/packages/.libs/lib/cmake/Boost
DetectToolset-1.84.0.cmake                                                      

The libraries I expect, libboost_python and the numpy module, are not installed. I don't think they're compiled at all, but there is no error. Do you have any idea what I am missing?

Thanks,
FX
_______________________________________________
Boost mailing list -- [email protected]
To unsubscribe send an email to [email protected]
https://lists.boost.org/mailman3/lists/boost.lists.boost.org/
Archived at: https://lists.boost.org/archives/list/[email protected]/message/YW36Q7O26EYZPOMR7323ASR6L43RMI5Z/
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.