Skip to content

Commit 76ea4e7

Browse files
committed
python3.11-ninja: move to tur-pypi-generic
1 parent 3a7b5c3 commit 76ea4e7

File tree

4 files changed

+8
-2
lines changed

4 files changed

+8
-2
lines changed

tur-pypi-311/python3.11-ninja/build.sh renamed to tur-pypi-generic/python3.11-ninja/build.sh

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ TERMUX_PKG_SRCURL=git+https://github.com/scikit-build/ninja-python-distributions
77
TERMUX_PKG_GIT_BRANCH="$TERMUX_PKG_VERSION"
88
TERMUX_PKG_DEPENDS="libc++, python3.11"
99
TERMUX_PKG_BUILD_DEPENDS="libandroid-spawn-static"
10-
TERMUX_PKG_PYTHON_COMMON_DEPS="wheel, 'setuptools==65.4.1', 'setuptools-scm[toml]', scikit-build"
10+
TERMUX_PKG_PYTHON_COMMON_DEPS="wheel, 'setuptools-scm[toml]', scikit-build"
1111
TERMUX_PKG_BUILD_IN_SRC=true
1212
TERMUX_PKG_AUTO_UPDATE=true
1313
TERMUX_PKG_UPDATE_TAG_TYPE="latest-release-tag"
@@ -74,7 +74,7 @@ termux_step_configure() {
7474
pushd ninja-source
7575
./configure.py
7676
termux_setup_ninja
77-
ninja -j $TERMUX_MAKE_PROCESSES
77+
ninja -j $TERMUX_PKG_MAKE_PROCESSES
7878
popd # ninja-source
7979
}
8080

@@ -87,9 +87,15 @@ termux_step_make_install() {
8787

8888
rm -f $TERMUX_PREFIX/bin/.placeholder
8989
touch $TERMUX_PREFIX/bin/.placeholder
90+
91+
# Convert it to a generic wheel
92+
mv ./dist/ninja-$TERMUX_PKG_VERSION-cp311-cp311-linux_$TERMUX_ARCH.whl \
93+
./dist/ninja-$TERMUX_PKG_VERSION-py2.py3-none-linux_$TERMUX_ARCH.whl
9094
}
9195

9296
tur_install_wheel_license() {
9397
# Install license of ninja binary
9498
cp $TERMUX_PKG_SRCDIR/ninja-source/COPYING COPYING-ninja-binary
99+
# Install license of libandroid-spawn
100+
cp $TERMUX_PREFIX/share/doc/libandroid-spawn/LICENSE LICENSE-libandroid-spawn
95101
}

0 commit comments

Comments
 (0)