diff --git a/_build_wheels.sh b/_build_wheels.sh old mode 100755 new mode 100644 index 870d42d..7f8762d --- a/_build_wheels.sh +++ b/_build_wheels.sh @@ -24,4 +24,4 @@ done # Bundle external shared libraries into the wheels for whl in ~/src/wheelhouse/*.whl; do repair_wheel "$whl" -done \ No newline at end of file +done diff --git a/build.sh b/build.sh index 841c22a..d543ef6 100755 --- a/build.sh +++ b/build.sh @@ -5,7 +5,7 @@ cd $SCRIPT_DIR PLAT=manylinux_2_28_x86_64 DOCKER_IMAGE="quay.io/pypa/${PLAT}" docker pull $DOCKER_IMAGE -docker run --rm -i -e PLAT=${PLAT} -v `pwd`:/io $DOCKER_IMAGE /io/_build_wheels.sh +docker run --rm -i -e PLAT=${PLAT} -v `pwd`:/io $DOCKER_IMAGE bash /io/_build_wheels.sh python3 -m pip install --upgrade build twine python3 -m build -o ./wheelhouse --sdist bash ./stubs/build.sh diff --git a/pylibclang/__init__.py b/pylibclang/__init__.py index b4cd42d..af7e27c 100644 --- a/pylibclang/__init__.py +++ b/pylibclang/__init__.py @@ -1,2 +1,2 @@ __CLANG_VERSION__ = "16.0.6" -__VERSION__ = "2" + __CLANG_VERSION__ +__VERSION__ = "3" + __CLANG_VERSION__ diff --git a/stubs/build.sh b/stubs/build.sh index 4058eb8..68097b5 100644 --- a/stubs/build.sh +++ b/stubs/build.sh @@ -1,18 +1,20 @@ #/!/bin/bash SCRIPT_DIR="$( cd -- "$( dirname -- "${BASH_SOURCE[0]:-$0}"; )" &> /dev/null && pwd 2> /dev/null; )"; cd $SCRIPT_DIR +rm -rf *.egg-info +rm -rf dist +rm -rf build +rm -rf dist +rm -rf venv +rm -rf pylibclang-stubs python3 -m venv venv source venv/bin/activate pip install ../ --upgrade pip install pybind11-stubgen --upgrade -rm -rf pylibclang-stubs/* pybind11-stubgen pylibclang._C -o $PWD/tmp --ignore-unresolved-names capsule mv tmp/pylibclang/* pylibclang-stubs/ rm -rf tmp - -rm -rf *.egg-info -rm -rf dist python3 -m pip install --upgrade build twine setuptools wheel python3 -m build --no-isolation