Skip to content

Commit

Permalink
Update cibuildpkg.py
Browse files Browse the repository at this point in the history
  • Loading branch information
JoeSchiff authored Dec 3, 2024
1 parent f07af19 commit 8167b6a
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions scripts/cibuildpkg.py
Original file line number Diff line number Diff line change
Expand Up @@ -105,8 +105,7 @@ def run(cmd, env=None):
print(f"stderr: {e.stderr}")
raise e

def correct_configure():
file_path = "D:/a/pyav-ffmpeg/pyav-ffmpeg/build/ffmpeg/configure"
def correct_configure(file_path):
old_string = 'test_cmd $pkg_config --exists --print-errors $pkg_version || return'
new_string = 'test_cmd $pkg_config --exists --print-errors "$pkg_version" || return'

Expand Down Expand Up @@ -235,7 +234,7 @@ def _build_with_autoconf(self, package: Package, for_builder: bool) -> None:
configure_args += ["--target=x86_64-win64-gcc"]

if package.name == "ffmpeg" and platform.system() == "Windows":
correct_configure()
correct_configure(self._mangle_path(os.path.join(package_source_path, "configure")))

# build package
os.makedirs(package_build_path, exist_ok=True)
Expand Down

0 comments on commit 8167b6a

Please sign in to comment.