Skip to content

Commit

Permalink
Update setup.py
Browse files Browse the repository at this point in the history
  • Loading branch information
sergey-dryabzhinsky authored Jan 23, 2025
1 parent d51442c commit 6c6e6b3
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,10 @@
if os.path.exists(pkgconf):
print("pkg-config exists")
cmd = [pkgconf, "libzstd", "--modversion"]
VERSION_STR=""
if sys.hexversion >= 0x03000000:
VERSION_STR=b''
else:
VERSION_STR=""
if sys.hexversion >= 0x02070000:
try:
VERSION_STR = subprocess.check_output(cmd)
Expand Down

0 comments on commit 6c6e6b3

Please sign in to comment.