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

install pkg-config-lite using mach bootstrap on Windows

  • Loading branch information
MeFisto94 committed Dec 21, 2019
commit 139247b50f58807f6cdb709115cbd812cd34f4c3
@@ -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.