1
0
mirror of https://github.com/facebook/proxygen.git synced 2025-08-08 18:02:05 +03:00
Files
proxygen/build/fbcode_builder/specs/zstd.py
Chad Austin 4fb4756ec9 remove legacy __future__ imports
Summary: The future is now.

Reviewed By: xavierd

Differential Revision: D33714537

fbshipit-source-id: 8d282bbe7391c4b72b70dab54a5c252060fba457
2022-01-24 20:23:34 -08:00

28 lines
793 B
Python

#!/usr/bin/env python
# Copyright (c) Facebook, Inc. and its affiliates.
from shell_quoting import ShellQuoted
def fbcode_builder_spec(builder):
# This API should change rarely, so build the latest tag instead of master.
builder.add_option(
"facebook/zstd:git_hash",
ShellQuoted("$(git describe --abbrev=0 --tags origin/master)"),
)
return {
"steps": [
builder.github_project_workdir("facebook/zstd", "."),
builder.step(
"Build and install zstd",
[
builder.make_and_install(
make_vars={
"PREFIX": builder.option("prefix"),
}
)
],
),
],
}