Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Install pkg-config-lite using mach bootstrap on Windows #25355

Closed
Closed
Changes from all commits
Commits
File filter...
Filter file types
Jump to…
Jump to file
Failed to load files.

Always

Just for now

@@ -308,6 +308,26 @@ def prepare_file(zip_path, full_spec):
else:
print("done")

# Until pkg-config-lite is in the depedencies, install it manually
dep_dir = os.path.join(deps_dir, "pkg-config")
if not os.path.exists(dep_dir):
zip_path = os.path.join(deps_dir, "pkg-config.zip")
zip_url = "https://downloads.sourceforge.net/project/pkgconfiglite/0.28-1/pkg-config-lite-0.28-1_bin-win32.zip"

if not os.path.isfile(zip_path):
download_file("pkg-config-lite", zip_url, zip_path)

print("Extracting pkg-config-lite...", end='')
try:
extract(zip_path, deps_dir)
os.rename(os.path.join(deps_dir, "pkg-config-lite-0.28-1"), dep_dir)
except BadZipfile:
print("\nError: pkg-config.zip is not a valid zip file!")
os.remove(zip_path)
os.sys.exit(1) # We can't retry here due to the non-method nature.
else:
print("done")

to_install = {}
for package in packages.WINDOWS_MSVC:
# Don't install CMake if it already exists in PATH
ProTip! Use n and p to navigate between commits in a pull request.
You can’t perform that action at this time.