Browse Source

l/python-mock: Also build for Python 3.

current-20191101
Damien Goutte-Gattat 2 years ago
parent
commit
24f3ebde2a
  1. 11
      l/python-mock/python-mock.SlackBuild

11
l/python-mock/python-mock.SlackBuild

@ -71,8 +71,15 @@ cd $TMP
echo "Building $ARCHIVE..."
tar xf $CWD/$ARCHIVE
cd $NAME
python setup.py build
python setup.py install --root=$PKG
python2 setup.py build
python2 setup.py install --root=$PKG
# Mock is part of the standard library of Python 3, but under the
# name 'unittest.mock' instead of 'mock'. Since some Python code
# out there rely on the 'mock' name, this "backport" is also
# needed for Python 3...
python3 setup.py build
python3 setup.py install --root=$PKG
# Install the documentation
mkdir -p $PKG/usr/doc/$NAMEPKG-$VERSION

Loading…
Cancel
Save