-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
n3hrox
committed
Nov 10, 2019
1 parent
172ad71
commit 3ba4b8b
Showing
1 changed file
with
1 addition
and
11 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,17 +1,7 @@ | ||
from dvc.utils import is_binary | ||
|
||
|
||
def check_build_patch(): | ||
def get_package_manager(): | ||
try: | ||
from .build import PKG # file created during dvc build | ||
|
||
return PKG | ||
except ImportError: | ||
return None | ||
|
||
|
||
def get_package_manager(): | ||
if not is_binary(): | ||
return "pip" | ||
|
||
return check_build_patch() |