Skip to content

Commit

Permalink
build: use build-requirements.txt
Browse files Browse the repository at this point in the history
  • Loading branch information
efiop committed Jan 11, 2020
1 parent 795e4ce commit c064865
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 7 deletions.
2 changes: 2 additions & 0 deletions scripts/build-requirements.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
PyInstaller==3.5
psutil
6 changes: 2 additions & 4 deletions scripts/build_posix.sh
Original file line number Diff line number Diff line change
Expand Up @@ -95,10 +95,8 @@ install_dependencies()
pip install --upgrade pip

print_info "Installing requirements..."
pip install .[all] psutil

print_info "Installing pyinstaller..."
pip install pyinstaller
pip install .[all]
pip install -r scripts/build-requirements.txt
}

build_dvc()
Expand Down
3 changes: 1 addition & 2 deletions scripts/build_windows.cmd
Original file line number Diff line number Diff line change
Expand Up @@ -23,9 +23,8 @@ if %errorlevel% neq 0 (echo Error: Couldn't find Inno Setup compiler. && goto :e
echo ====== Installing requirements... ======
echo PKG = "exe" > dvc\utils\build.py
call pip install .[all] || goto :error
call pip install psutil || goto :error
call pip install -r scripts\build-requirements.txt || goto :error
call dvc pull || goto :error
call pip install pyinstaller || goto :error

echo ====== Building dvc binary... ======
call pyinstaller --additional-hooks-dir scripts\hooks dvc/__main__.py --name dvc --specpath build
Expand Down
1 change: 0 additions & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,6 @@ def run(self):

# Extra dependecies to run tests
tests_requirements = [
"PyInstaller==3.5",
"wheel>=0.31.1",
"pydot>=1.2.4",
# Test requirements:
Expand Down

0 comments on commit c064865

Please sign in to comment.