python update
This commit is contained in:
1 parent
95d3b771e7
commit
d799fb4687
59 files changed
+290
-296
No files matched your search
@@ -1,7 +1,7 @@
|
||||
#!/usr/bin/env bash
|
||||
name='py3-flit'
|
||||
release='3'
|
||||
version='3.9.0'
|
||||
release='4'
|
||||
version='3.12.0'
|
||||
url='https://github.com/pypa/flit'
|
||||
description='Simplified packaging of Python modules'
|
||||
email='aliriza.keskin@pardus.org.tr'
|
||||
@@ -10,14 +10,24 @@ license=('GPLv3')
|
||||
source=("https://github.com/pypa/flit/archive/refs/tags/$version.tar.gz")
|
||||
depends=(python)
|
||||
makedepends=()
|
||||
sha256sums=('55e28d0953726c4c744f02779b85f733f65da5bffb6a5d2fe11072d19ca2d148')
|
||||
sha256sums=('c157ff92c01f4bb169182722ff76aadac113926b729215e91909021aa56e2ea3')
|
||||
group=(dev.python)
|
||||
uses=()
|
||||
arch=('x86_64')
|
||||
|
||||
cd flit-$version
|
||||
|
||||
## this package require itself. so we must use venv for build
|
||||
prepare(){
|
||||
python3 -m venv .
|
||||
source bin/activate
|
||||
pip3 install build installer flit
|
||||
}
|
||||
|
||||
|
||||
|
||||
build(){
|
||||
source bin/activate
|
||||
cur=$PWD
|
||||
for dir in . flit_core; do
|
||||
cd $dir
|
||||
@@ -33,4 +43,5 @@ package(){
|
||||
python -m installer --destdir="$DESTDIR" dist/*.whl
|
||||
cd $cur
|
||||
done
|
||||
mv ${DESTDIR}/usr/lib/python3.*/site-packages ${DESTDIR}/usr/lib/python3
|
||||
}
|
||||
Reference in new issue
Block a user