Skip to content

Commit

Permalink
Fix issues (openvinotoolkit#1052)
Browse files Browse the repository at this point in the history
### Changes

<!--- What was changed (briefly), how to reproduce (if applicable), what the reviewers should focus on -->

### Reason for changes

<!--- Why should the change be applied -->

### Related tickets

<!--- Post the numerical ID of the ticket, if available -->

### Tests

<!--- How was the correctness of changes tested and whether new tests were added -->
  • Loading branch information
vshampor authored Dec 22, 2021
1 parent 3a0aabe commit de7a05a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -59,11 +59,11 @@ def find_version(*file_paths):
if not is_building_release:
if is_installing_editable:
return version_value + ".dev0+editable"
import subprocess
import subprocess # nosec
dev_version_id = "unknown_version"
try:
repo_root = os.path.dirname(os.path.realpath(__file__))
dev_version_id = subprocess.check_output(["git", "rev-parse", "--short", "HEAD"],
dev_version_id = subprocess.check_output(["git", "rev-parse", "--short", "HEAD"], # nosec
cwd=repo_root).strip().decode()
except subprocess.CalledProcessError:
pass
Expand Down

0 comments on commit de7a05a

Please sign in to comment.