Skip to content

Commit

Permalink
fix setup.py encoding issues
Browse files Browse the repository at this point in the history
  • Loading branch information
dakk committed Aug 21, 2024
1 parent 2987903 commit 0c1fd4c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
buildOptions = {"build_exe": {"packages": ["gi"], "include_files": []}}
executables = [Executable("main.py")] # icon="evm_bg_KYa_icon.ico")

GDAL_VERSION = subprocess.check_output(['gdal-config', '--version']).strip()
GDAL_VERSION = subprocess.check_output(['gdal-config', '--version']).decode('ascii').strip()

Check failure on line 29 in setup.py

View check run for this annotation

Codacy Production / Codacy Static Code Analysis

setup.py#L29

Python possesses many mechanisms to invoke an external executable.

Check warning on line 29 in setup.py

View check run for this annotation

Codacy Production / Codacy Static Code Analysis

setup.py#L29

subprocess call - check for execution of untrusted input.

requirements = open("requirements.txt", "r").read().split("\n")[:-1]
requirements.append(f'GDAL=={GDAL_VERSION}')
Expand Down

0 comments on commit 0c1fd4c

Please sign in to comment.