mirror of
https://github.com/Stone-Red-Code/dvc.git
synced 2026-11-18 15:28:28 +01:00
add pip fallback
This commit is contained in:
@@ -8,6 +8,8 @@ if [ ! -d "dvc" ]; then
|
||||
exit 1
|
||||
fi
|
||||
|
||||
echo "PKG = \"pip\"" > dvc/utils/build.py
|
||||
|
||||
python setup.py sdist
|
||||
python setup.py bdist_wheel --universal
|
||||
|
||||
|
||||
+10
-5
@@ -51,7 +51,6 @@ command_exists()
|
||||
|
||||
fpm_build()
|
||||
{
|
||||
echo "PKG = \"$1\"" > $(pwd)/dvc/utils/build.py
|
||||
print_info "Building $1..."
|
||||
VERSION=$(python -c "import dvc; from dvc import __version__; print(str(__version__))")
|
||||
fpm -s dir \
|
||||
@@ -132,15 +131,21 @@ build_dvc()
|
||||
fi
|
||||
}
|
||||
|
||||
build()
|
||||
{
|
||||
echo "PKG = \"$1\"" > dvc/utils/build.py
|
||||
build_dvc
|
||||
fpm_build $1
|
||||
}
|
||||
|
||||
cleanup
|
||||
install_dependencies
|
||||
build_dvc
|
||||
|
||||
if [[ "$(uname)" == 'Linux' ]]; then
|
||||
fpm_build rpm
|
||||
fpm_build deb
|
||||
build rpm
|
||||
build deb
|
||||
else
|
||||
fpm_build osxpkg
|
||||
build osxpkg
|
||||
fi
|
||||
|
||||
cleanup
|
||||
|
||||
Reference in New Issue
Block a user