python/WebHelpers: Convert python to python2.
Signed-off-by: Dave Woodfall <dave@slackbuilds.org> Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
This commit is contained in:
parent
25f2fb3c20
commit
b2ce7dfab8
|
@ -1,16 +1,16 @@
|
|||
WebHelpers is a wide variety of utility functions for web applications and other
|
||||
applications.
|
||||
WebHelpers is a wide variety of utility functions for web applications
|
||||
and other applications.
|
||||
It can be used with any web framework.
|
||||
|
||||
WebHelpers includes the widely-used HTML tag builder with smart escaping and
|
||||
convenience functions for common tags such as form fields.
|
||||
The common builder ensures the tags are syntactically correct and prevent
|
||||
cross-site scripting attacks and double-escaping.
|
||||
WebHelpers includes the widely-used HTML tag builder with smart escaping
|
||||
and convenience functions for common tags such as form fields.
|
||||
The common builder ensures the tags are syntactically correct and
|
||||
prevent cross-site scripting attacks and double-escaping.
|
||||
|
||||
Other helpers perform text processing, split a large number of records into
|
||||
pages, generate Atom/RSS feeds with geographical (GIS) data, handle MIME types,
|
||||
calculate numerica statistics, and more.
|
||||
Other helpers perform text processing, split a large number of records
|
||||
into pages, generate Atom/RSS feeds with geographical (GIS) data, handle
|
||||
MIME types, calculate numerica statistics, and more.
|
||||
There are also high-level container types, including a value counter and
|
||||
accumulator.
|
||||
There are lists of country names, country codes, US states, Canadian provinces,
|
||||
and UK counties.
|
||||
There are lists of country names, country codes, US states, Canadian
|
||||
provinces, and UK counties.
|
||||
|
|
|
@ -53,10 +53,8 @@ find -L . \
|
|||
\( -perm 666 -o -perm 664 -o -perm 640 -o -perm 600 -o -perm 444 \
|
||||
-o -perm 440 -o -perm 400 \) -exec chmod 644 {} \;
|
||||
|
||||
python setup.py install --root=$PKG
|
||||
if $(python3 -c 'import sys' 2>/dev/null); then
|
||||
python3 setup.py install --root=$PKG
|
||||
fi
|
||||
python2 setup.py install --root=$PKG
|
||||
python3 setup.py install --root=$PKG
|
||||
|
||||
mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
|
||||
cp -a README* MANIFEST.in $PKG/usr/doc/$PRGNAM-$VERSION
|
||||
|
|
Loading…
Reference in New Issue