Skip to content

Commit

Permalink
util.py refactoring
Browse files Browse the repository at this point in the history
  • Loading branch information
Obijuan committed Mar 15, 2024
1 parent c1c465e commit 25ea4eb
Showing 1 changed file with 13 additions and 4 deletions.
17 changes: 13 additions & 4 deletions apio/util.py
Original file line number Diff line number Diff line change
Expand Up @@ -421,10 +421,19 @@ def get_bin_dir_table(base_dir):
return bin_dir


def check_package(name: str, version: str, spec_version: str, path: Path):
"""Check if the given package is installed
* name: Package name
* path: path where the binary files of the package are stored
def check_package(
name: str, version: str, spec_version: str, path: Path
) -> bool:
"""Check if the given package is ok
(and can be installed without problemas)
* INPUTS:
- name: Package name
- version: Package version
- spec_version: semantic version constraint
- path: path where the binary files of the package are stored
* OUTPUT:
- True: Package
"""

# Apio package 'gtkwave' only exists for Windows.
Expand Down

0 comments on commit 25ea4eb

Please sign in to comment.