Files
Arch-R/packages/python/devel/setuptools/package.mk
MilhouseVH b130a31822 packages: add thread safety workaround
Avoids trashing $TOOLCHAIN/lib/python2.7/site-packages/easy-install.pth
when installing Python host packages (distutilscross:host, setuptools:host,
MarkupSafe:host etc.).
2019-02-08 17:17:43 +00:00

24 lines
820 B
Makefile

# SPDX-License-Identifier: GPL-2.0-or-later
# Copyright (C) 2009-2016 Stephan Raue (stephan@openelec.tv)
# Copyright (C) 2018-present Team LibreELEC (https://libreelec.tv)
PKG_NAME="setuptools"
PKG_VERSION="39.2.0"
PKG_SHA256="ca8119dd5c2764a7d290518817de0b880d23d790913fcd797c02ad2aa39b8c41"
PKG_LICENSE="OSS"
PKG_SITE="https://pypi.org/project/setuptools"
PKG_URL="https://github.com/pypa/setuptools/archive/v$PKG_VERSION.tar.gz"
PKG_DEPENDS_HOST="Python2:host Python3:host"
PKG_LONGDESC="Replaces Setuptools as the standard method for working with Python module distributions."
PKG_TOOLCHAIN="manual"
make_host() {
python2 bootstrap.py
python3 bootstrap.py
}
makeinstall_host() {
exec_thread_safe python2 setup.py install --prefix=$TOOLCHAIN
exec_thread_safe python3 setup.py install --prefix=$TOOLCHAIN
}