mirror of
https://github.com/Stone-Red-Code/dvc.git
synced 2026-11-02 07:18:25 +01:00
build: move pyinstall hooks to scripts/
Signed-off-by: Ruslan Kuprieiev <[email protected]>
This commit is contained in:
@@ -67,7 +67,7 @@ install_dependencies()
|
||||
build_dvc()
|
||||
{
|
||||
print_info "Building dvc binary..."
|
||||
pyinstaller --onefile --additional-hooks-dir $(pwd)/hooks dvc/__main__.py --name dvc --distpath $BIN_DIR --specpath $BUILD_DIR
|
||||
pyinstaller --onefile --additional-hooks-dir $(pwd)/scripts/hooks dvc/__main__.py --name dvc --distpath $BIN_DIR --specpath $BUILD_DIR
|
||||
}
|
||||
|
||||
cleanup
|
||||
|
||||
@@ -56,7 +56,7 @@ install_dependencies()
|
||||
build_dvc()
|
||||
{
|
||||
print_info "Building dvc binary..."
|
||||
pyinstaller --onefile --additional-hooks-dir $(pwd)/hooks dvc/__main__.py --name dvc --distpath $BIN_DIR --specpath $BUILD_DIR
|
||||
pyinstaller --onefile --additional-hooks-dir $(pwd)/scripts/hooks dvc/__main__.py --name dvc --distpath $BIN_DIR --specpath $BUILD_DIR
|
||||
}
|
||||
|
||||
cleanup
|
||||
|
||||
@@ -19,7 +19,7 @@ call pip install -r requirements.txt || goto :error
|
||||
call pip install pyinstaller || goto :error
|
||||
|
||||
echo ====== Building dvc binary... ======
|
||||
call pyinstaller --onefile --additional-hooks-dir hooks dvc/__main__.py --name dvc --specpath build
|
||||
call pyinstaller --onefile --additional-hooks-dir scripts\hooks dvc/__main__.py --name dvc --specpath build
|
||||
|
||||
echo ====== Copying additional files... ======
|
||||
copy innosetup\addSymLinkPermissions.ps1 dist\ || goto :error
|
||||
|
||||
@@ -0,0 +1,2 @@
|
||||
from PyInstaller.utils.hooks import copy_metadata
|
||||
datas = copy_metadata('google-cloud-core')
|
||||
@@ -0,0 +1,2 @@
|
||||
from PyInstaller.utils.hooks import copy_metadata
|
||||
datas = copy_metadata('google-cloud-storage')
|
||||
Reference in New Issue
Block a user