From 47e1b49e2aa961786d101f11abb0b96ace0ddaba Mon Sep 17 00:00:00 2001 From: Casper da Costa-Luis Date: Sat, 16 Nov 2019 16:42:25 +0000 Subject: [PATCH] PKG = "snap" Fixes https://github.com/iterative/dvc/pull/2778#issuecomment-554651335 --- scripts/build_package.sh | 2 +- snapcraft.yaml | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/scripts/build_package.sh b/scripts/build_package.sh index d64f3e6e4..1b9536697 100755 --- a/scripts/build_package.sh +++ b/scripts/build_package.sh @@ -8,7 +8,7 @@ if [ ! -d "dvc" ]; then exit 1 fi -echo "PKG = \"pip\"" > dvc/utils/build.py +echo 'PKG = "pip"' > dvc/utils/build.py python setup.py sdist python setup.py bdist_wheel --universal diff --git a/snapcraft.yaml b/snapcraft.yaml index b2fad552f..9fc6bbc10 100644 --- a/snapcraft.yaml +++ b/snapcraft.yaml @@ -19,6 +19,7 @@ parts: - libc-dev override-pull: | snapcraftctl pull + echo 'PKG = "snap"' > $SNAPCRAFT_PART_SRC/dvc/utils/build.py snapcraftctl set-version `cd $SNAPCRAFT_PART_SRC && git describe --tags` apps: dvc: