|
|
|
@ -24,15 +24,15 @@
|
|
|
|
|
# |
|
|
|
|
# Latest flake8 sourcecode is available at: <https://gitlab.com/pycqa/flake8>. |
|
|
|
|
# |
|
|
|
|
# Depends: l/python-entrypoints, l/pyflakes, l/pycodestyle |
|
|
|
|
# Depends: l/python-mccabe, l/python-enum34, l/python-typing |
|
|
|
|
# Depends: l/python-backports, l/python-functools32 |
|
|
|
|
# Depends: l/python-entrypoints, l/python-mccabe, l/pycodestyle, l/pyflakes |
|
|
|
|
# Optional: l/python-backports, l/python-enum34, l/python-functools32 |
|
|
|
|
# |
|
|
|
|
# Note: The optional dependencies above are only needed for Python 2. |
|
|
|
|
|
|
|
|
|
# Source package infos |
|
|
|
|
NAMESRC=${NAMESRC:-flake8} |
|
|
|
|
VERSION=${VERSION:-3.7.8} |
|
|
|
|
VERSION=${VERSION:-3.7.9} |
|
|
|
|
ARCHIVE=${ARCHIVE:-$NAMESRC-$VERSION.tar.gz} |
|
|
|
|
WGET=${WGET:-https://files.pythonhosted.org/packages/8d/a7/99222c9200af533c1ecb1120d99adbd1c033b57296ac5cb39d121db007a8/$ARCHIVE} |
|
|
|
|
|
|
|
|
|
# Build infos |
|
|
|
|
NAMEPKG=${NAMEPKG:-python-flake8} |
|
|
|
@ -61,8 +61,7 @@ fi
|
|
|
|
|
|
|
|
|
|
# Get and verify the source archive |
|
|
|
|
if [ ! -r $ARCHIVE ]; then |
|
|
|
|
wget -c -O $ARCHIVE.part "$WGET" |
|
|
|
|
mv $ARCHIVE.part $ARCHIVE |
|
|
|
|
pip3 download --no-binary :all: --no-deps $NAMESRC==$VERSION |
|
|
|
|
fi |
|
|
|
|
sha256sum -c $ARCHIVE.sha256 |
|
|
|
|
NAME=$(tar ft $ARCHIVE | head -n 1 | cut -d / -f 1) |
|
|
|
@ -72,8 +71,9 @@ cd $TMP
|
|
|
|
|
echo "Building $ARCHIVE..." |
|
|
|
|
tar xf $CWD/$ARCHIVE |
|
|
|
|
cd $NAME |
|
|
|
|
python setup.py build |
|
|
|
|
python setup.py install --root=$PKG |
|
|
|
|
# Build for Python 3 only. |
|
|
|
|
python3 setup.py build |
|
|
|
|
python3 setup.py install --root=$PKG |
|
|
|
|
|
|
|
|
|
# Install the documentation |
|
|
|
|
mkdir -p $PKG/usr/doc/$NAMEPKG-$VERSION |
|
|
|
@ -87,12 +87,8 @@ install -D -m 644 $CWD/slack-desc $PKG/install/slack-desc
|
|
|
|
|
cat <<EOF > $PKG/install/slack-required |
|
|
|
|
pycodestyle |
|
|
|
|
pyflakes |
|
|
|
|
python-backports |
|
|
|
|
python-entrypoints |
|
|
|
|
python-enum34 |
|
|
|
|
python-functools32 |
|
|
|
|
python-mccabe |
|
|
|
|
python-typing |
|
|
|
|
EOF |
|
|
|
|
|
|
|
|
|
# Package the tree |
|
|
|
|