Merge branch 'ignore_export_errors_stubgen' into 'master'

Ignore export errors stubgen

See merge request ngsolve/netgen!515
This commit is contained in:
Schöberl, Joachim 2022-08-19 12:58:51 +02:00
commit a6852cf41b
6 changed files with 6 additions and 6 deletions

View File

@ -32,7 +32,7 @@ if(pybind11_stubgen AND NOT ${pybind11_stubgen} EQUAL 0)
for better autocompletion support install it with pip.") for better autocompletion support install it with pip.")
else() else()
message("-- Found pybind11-stubgen: ${stubgen_path}") message("-- Found pybind11-stubgen: ${stubgen_path}")
install(CODE "execute_process(COMMAND ${PYTHON_EXECUTABLE} -m pybind11_stubgen --no-setup-py netgen)") install(CODE "execute_process(COMMAND ${PYTHON_EXECUTABLE} -m pybind11_stubgen --no-setup-py --ignore-invalid=all netgen)")
install(DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}/../stubs/netgen-stubs/ DESTINATION ${NG_INSTALL_DIR_PYTHON}/netgen/ COMPONENT netgen) install(DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}/../stubs/netgen-stubs/ DESTINATION ${NG_INSTALL_DIR_PYTHON}/netgen/ COMPONENT netgen)
endif() endif()
endif(BUILD_STUB_FILES) endif(BUILD_STUB_FILES)

View File

@ -9,6 +9,6 @@ $env:NETGEN_CCACHE = 1
$pydir=$args[0] $pydir=$args[0]
& $pydir\python.exe --version & $pydir\python.exe --version
& $pydir\python.exe -m pip install scikit-build wheel numpy twine & $pydir\python.exe -m pip install scikit-build wheel numpy twine pybind11-stubgen
& $pydir\python setup.py bdist_wheel -G"Visual Studio 16 2019" & $pydir\python setup.py bdist_wheel -G"Visual Studio 16 2019"
& $pydir\python -m twine upload dist\*.whl & $pydir\python -m twine upload dist\*.whl

View File

@ -11,7 +11,7 @@ for pyversion in 38 39 310
do do
export PYDIR="/opt/python/cp${pyversion}-cp${pyversion}/bin" export PYDIR="/opt/python/cp${pyversion}-cp${pyversion}/bin"
echo $PYDIR echo $PYDIR
$PYDIR/pip install -U pytest-check numpy wheel scikit-build $PYDIR/pip install -U pytest-check numpy wheel scikit-build pybind11-stubgen
rm -rf _skbuild rm -rf _skbuild
$PYDIR/pip wheel . $PYDIR/pip wheel .

View File

@ -6,7 +6,7 @@ export NETGEN_CCACHE=1
export PYDIR=/Library/Frameworks/Python.framework/Versions/$1/bin export PYDIR=/Library/Frameworks/Python.framework/Versions/$1/bin
$PYDIR/python3 --version $PYDIR/python3 --version
$PYDIR/pip3 install --user numpy twine scikit-build wheel $PYDIR/pip3 install --user numpy twine scikit-build wheel pybind11-stubgen
export CMAKE_OSX_ARCHITECTURES='arm64;x86_64' export CMAKE_OSX_ARCHITECTURES='arm64;x86_64'
$PYDIR/python3 setup.py bdist_wheel --plat-name macosx-10.15-universal2 -j10 $PYDIR/python3 setup.py bdist_wheel --plat-name macosx-10.15-universal2 -j10

View File

@ -29,5 +29,5 @@ RUN apt-get update && apt-get -y install \
tcl-dev \ tcl-dev \
tk-dev tk-dev
RUN python3 -m pip install pytest-check RUN python3 -m pip install pytest-check pybind11-stubgen
ADD . /root/src/netgen ADD . /root/src/netgen

View File

@ -23,5 +23,5 @@ RUN apt-get update && apt-get -y install \
tcl-dev \ tcl-dev \
tk-dev tk-dev
RUN python3 -m pip install pytest-mpi pytest-check pytest RUN python3 -m pip install pytest-mpi pytest-check pytest pybind11-stubgen
ADD . /root/src/netgen ADD . /root/src/netgen