blob: cbd5559b8cf344e5d3dc32b0c6fd6d91184a953a (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
|
#!/bin/sh
#
# The Python 2 source is the definitive source. This script uses 2to3-3.2 to
# create a new python3/bs4 source tree that works under Python 3.
#
# See README.txt to see how to run the test suite after conversion.
echo "About to destroy and rebuild the python3.2/bs4 directory."
echo "If you've got stuff in there, Ctrl-C out of this script or answer 'n'."
rm -rfI python3.2/bs4
cp -r bs4 python3.2
2to3-3.2 -w python3.2
echo ""
echo "OK, conversion is done."
echo "Now running the unit tests."
(cd python3.2 && python3.2 -m unittest discover -s bs4)
|