fixed up build-deb.sh

This commit is contained in:
B.J. Dweck 2020-10-20 10:25:31 +02:00
parent f31e9e62d7
commit 32ee0ffe55

View File

@ -16,15 +16,14 @@ PROJECT=torch-agent-$TORCH_VERSION
BUILD_DIR=dist
DEB_DIR=$BUILD_DIR/$PROJECT
rm -rf "${BUILD_DIR:?}/"*
pip3 install -r requirements.txt
python3 setup.py sdist
rm -rf "${BUILD_DIR:?}"
mkdir -p "$DEB_DIR/src/etc/torch"
cp -r debian "$DEB_DIR/"
cp torch.conf "$DEB_DIR/src/etc/torch/"
pip3 install -r requirements.txt
python3 setup.py sdist
cd $BUILD_DIR || exit
tar -xzmf "$PROJECT.tar.gz"