python-packages fixes

This commit is contained in:
Alexey Pavlov
2018-11-30 09:11:49 +03:00
parent 9c80eca36b
commit bb583bcc7c
4 changed files with 5 additions and 4 deletions

View File

@@ -12,13 +12,13 @@ license=('MIT')
makedepends=('python2-setuptools' 'python3-setuptools')
checkdepends=('python2-pytest' 'python3-pytest')
source=("https://files.pythonhosted.org/packages/source/${_realname::1}/${_realname}/${_realname}-${pkgver}.tar.gz")
sha512sums=('4df7ee97e0817a80378b273ced310b8ad88eb6ced93a594a6e3dc38ad1e7208226fde01b6d282f85583c57a50859e82c85bacaae8a7c64fce55e6965f74b12c5')
sha512sums=('29751e43e6095e97a8760140d58cd339ddccdf5481cf490e5fce000dca760bffaacdf85d612a07c35af82d9b3039b72fd7b9ad29772e29eaa785687de7597e92')
prepare() {
cd "${srcdir}"
for builddir in python{2,3}-build-${CARCH}; do
rm -rf ${builddir} | true
cp -r "${_realname}-${pkgver}" "${builddir}"
cp -r "python-${_realname}-${pkgver}" "${builddir}"
done
# Set version for setuptools_scm
export SETUPTOOLS_SCM_PRETEND_VERSION=$pkgver