Unverified Commit 44ae1e51 authored by Mark Harfouche's avatar Mark Harfouche Committed by GitHub
Browse files

Allow gcc to be overwritten with an environment variable (#5261)



* Allow gcc to be overwritten with an environment variable

* change quoting style
Co-authored-by: default avatarVasilis Vryniotis <datumbox@users.noreply.github.com>
parent 508c79de
...@@ -365,7 +365,7 @@ def get_extensions(): ...@@ -365,7 +365,7 @@ def get_extensions():
ffmpeg_include_dir = os.path.join(ffmpeg_root, "include") ffmpeg_include_dir = os.path.join(ffmpeg_root, "include")
ffmpeg_library_dir = os.path.join(ffmpeg_root, "lib") ffmpeg_library_dir = os.path.join(ffmpeg_root, "lib")
gcc = distutils.spawn.find_executable("gcc") gcc = os.environ.get("CC", distutils.spawn.find_executable("gcc"))
platform_tag = subprocess.run([gcc, "-print-multiarch"], stdout=subprocess.PIPE) platform_tag = subprocess.run([gcc, "-print-multiarch"], stdout=subprocess.PIPE)
platform_tag = platform_tag.stdout.strip().decode("utf-8") platform_tag = platform_tag.stdout.strip().decode("utf-8")
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment