Skip to content

Commit b594429

Browse files
committed
tree_sitter_python_jll build 0.16.1+0
1 parent 75133ec commit b594429

18 files changed

+835
-0
lines changed

Artifacts.toml

Lines changed: 113 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,113 @@
1+
[[tree_sitter_python]]
2+
arch = "aarch64"
3+
git-tree-sha1 = "27b8c35d34d221fd72dfad0978f0976e107f7107"
4+
libc = "glibc"
5+
os = "linux"
6+
7+
[[tree_sitter_python.download]]
8+
sha256 = "f7a9d6171d8b687b2100df127b0fdfd17a1059614d067c84aef5aae5152e60ba"
9+
url = "https://github.com/JuliaBinaryWrappers/tree_sitter_python_jll.jl/releases/download/tree_sitter_python-v0.16.1+0/tree_sitter_python.v0.16.1.aarch64-linux-gnu.tar.gz"
10+
[[tree_sitter_python]]
11+
arch = "aarch64"
12+
git-tree-sha1 = "14c1e433dc0b3fe96c9860436735c32cb0e3ad1c"
13+
libc = "musl"
14+
os = "linux"
15+
16+
[[tree_sitter_python.download]]
17+
sha256 = "e6665702a0a5f7aab174f3249a341b45e79d6c098fd50a8fb92be829a6b32243"
18+
url = "https://github.com/JuliaBinaryWrappers/tree_sitter_python_jll.jl/releases/download/tree_sitter_python-v0.16.1+0/tree_sitter_python.v0.16.1.aarch64-linux-musl.tar.gz"
19+
[[tree_sitter_python]]
20+
arch = "armv7l"
21+
git-tree-sha1 = "06a924b4c719c3e45869c33528b1029ac752700d"
22+
libc = "glibc"
23+
os = "linux"
24+
25+
[[tree_sitter_python.download]]
26+
sha256 = "444eb0989cba6f964b4add3d887a04a5ddb67caf2d3ccbedd37eef2d9497a46b"
27+
url = "https://github.com/JuliaBinaryWrappers/tree_sitter_python_jll.jl/releases/download/tree_sitter_python-v0.16.1+0/tree_sitter_python.v0.16.1.armv7l-linux-gnueabihf.tar.gz"
28+
[[tree_sitter_python]]
29+
arch = "armv7l"
30+
git-tree-sha1 = "d73f7b7c97647cf644fb55ed06c9dd89f7156d2d"
31+
libc = "musl"
32+
os = "linux"
33+
34+
[[tree_sitter_python.download]]
35+
sha256 = "fabd11b1f4ec9c3dabcd8a029cc0b884f38b59b37087db5237ddf68316841468"
36+
url = "https://github.com/JuliaBinaryWrappers/tree_sitter_python_jll.jl/releases/download/tree_sitter_python-v0.16.1+0/tree_sitter_python.v0.16.1.armv7l-linux-musleabihf.tar.gz"
37+
[[tree_sitter_python]]
38+
arch = "i686"
39+
git-tree-sha1 = "018672274ff9b53e70e9b1ed8b15254420dadc4a"
40+
libc = "glibc"
41+
os = "linux"
42+
43+
[[tree_sitter_python.download]]
44+
sha256 = "a03fea7b45e206e340cd484b5fa503cf1a67e76e0401623c2768c47b9bb4a6bf"
45+
url = "https://github.com/JuliaBinaryWrappers/tree_sitter_python_jll.jl/releases/download/tree_sitter_python-v0.16.1+0/tree_sitter_python.v0.16.1.i686-linux-gnu.tar.gz"
46+
[[tree_sitter_python]]
47+
arch = "i686"
48+
git-tree-sha1 = "508d29308fb32aeaab8d66f1bc849a10e89e1c27"
49+
libc = "musl"
50+
os = "linux"
51+
52+
[[tree_sitter_python.download]]
53+
sha256 = "dcc918db06c8095b6a9a2d4bbfafe6972e03b5afe6df8c84337ddd557a108099"
54+
url = "https://github.com/JuliaBinaryWrappers/tree_sitter_python_jll.jl/releases/download/tree_sitter_python-v0.16.1+0/tree_sitter_python.v0.16.1.i686-linux-musl.tar.gz"
55+
[[tree_sitter_python]]
56+
arch = "i686"
57+
git-tree-sha1 = "53ff36696a24eae0de12ab1a670474f4222c4ddb"
58+
os = "windows"
59+
60+
[[tree_sitter_python.download]]
61+
sha256 = "1e8222bdd4051c6cbf7988387f544a6832bc73049afd7ef541c9216a37194088"
62+
url = "https://github.com/JuliaBinaryWrappers/tree_sitter_python_jll.jl/releases/download/tree_sitter_python-v0.16.1+0/tree_sitter_python.v0.16.1.i686-w64-mingw32.tar.gz"
63+
[[tree_sitter_python]]
64+
arch = "powerpc64le"
65+
git-tree-sha1 = "a05553ce5fc3f314a7a6662acbe3f921175a83d0"
66+
libc = "glibc"
67+
os = "linux"
68+
69+
[[tree_sitter_python.download]]
70+
sha256 = "15bf9336ef57b765cd6cea49c4783812e0239968892f58735de2a88ce1be33f7"
71+
url = "https://github.com/JuliaBinaryWrappers/tree_sitter_python_jll.jl/releases/download/tree_sitter_python-v0.16.1+0/tree_sitter_python.v0.16.1.powerpc64le-linux-gnu.tar.gz"
72+
[[tree_sitter_python]]
73+
arch = "x86_64"
74+
git-tree-sha1 = "7ebb53a10d8200c39e1379287b4a806692664ab4"
75+
os = "macos"
76+
77+
[[tree_sitter_python.download]]
78+
sha256 = "ac8a1f16007d22b0fd128d5e74cf75ffb4b3a571f449aab676a14c7c3b8c6813"
79+
url = "https://github.com/JuliaBinaryWrappers/tree_sitter_python_jll.jl/releases/download/tree_sitter_python-v0.16.1+0/tree_sitter_python.v0.16.1.x86_64-apple-darwin14.tar.gz"
80+
[[tree_sitter_python]]
81+
arch = "x86_64"
82+
git-tree-sha1 = "9a11a5e784f3e255963f551e89c63c148944b8d2"
83+
libc = "glibc"
84+
os = "linux"
85+
86+
[[tree_sitter_python.download]]
87+
sha256 = "7fe2c5b4297badbadee20e76a477a996b4072faae5cdd800b98441530423b63c"
88+
url = "https://github.com/JuliaBinaryWrappers/tree_sitter_python_jll.jl/releases/download/tree_sitter_python-v0.16.1+0/tree_sitter_python.v0.16.1.x86_64-linux-gnu.tar.gz"
89+
[[tree_sitter_python]]
90+
arch = "x86_64"
91+
git-tree-sha1 = "f9c7b238eb1a2f10e887a6ef3eb3dd05c3936797"
92+
libc = "musl"
93+
os = "linux"
94+
95+
[[tree_sitter_python.download]]
96+
sha256 = "3147cd89d3e211f057f0a840271dea70f8130eba46bb63dfe9c5b97252301817"
97+
url = "https://github.com/JuliaBinaryWrappers/tree_sitter_python_jll.jl/releases/download/tree_sitter_python-v0.16.1+0/tree_sitter_python.v0.16.1.x86_64-linux-musl.tar.gz"
98+
[[tree_sitter_python]]
99+
arch = "x86_64"
100+
git-tree-sha1 = "118e9ce250e4cdcc4b9359e4a625409ebd04bc40"
101+
os = "freebsd"
102+
103+
[[tree_sitter_python.download]]
104+
sha256 = "cbc3c292158c1a5bb0e9ab32ebc9a633f85a21f67efdefbd895ef03f6969fdc2"
105+
url = "https://github.com/JuliaBinaryWrappers/tree_sitter_python_jll.jl/releases/download/tree_sitter_python-v0.16.1+0/tree_sitter_python.v0.16.1.x86_64-unknown-freebsd11.1.tar.gz"
106+
[[tree_sitter_python]]
107+
arch = "x86_64"
108+
git-tree-sha1 = "c6a4c2f28ce1e0ea3ed882ed21609ac48393fdb5"
109+
os = "windows"
110+
111+
[[tree_sitter_python.download]]
112+
sha256 = "5d432ba3f07b5b467d2b0b1d99e05420d3cc8c7536958f8a4d9af523b4cfebf2"
113+
url = "https://github.com/JuliaBinaryWrappers/tree_sitter_python_jll.jl/releases/download/tree_sitter_python-v0.16.1+0/tree_sitter_python.v0.16.1.x86_64-w64-mingw32.tar.gz"

LICENSE

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,11 @@
1+
The Julia source code within this repository (all files under `src/`) are
2+
released under the terms of the MIT "Expat" License, the text of which is
3+
included below. This license does not apply to the binary package wrapped by
4+
this Julia package and automatically downloaded by the Julia package manager
5+
upon installing this wrapper package. The binary package's license is shipped
6+
alongside the binary itself and can be found within the
7+
`share/licenses/tree_sitter_python` directory within its prefix.
8+
19
MIT License
210

311
Copyright (c) 2020 JuliaBinaryWrappers

Project.toml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
name = "tree_sitter_python_jll"
2+
uuid = "88db161d-10c7-51e6-aa56-e32ecf738a46"
3+
version = "0.16.1+0"
4+
5+
[deps]
6+
Pkg = "44cfe95a-1eb2-52ea-b672-e2afdf69b78f"
7+
Libdl = "8f399da3-3557-5675-b5ff-fb832c97cbdb"
8+
9+
[compat]
10+
julia = "1.0"

README.md

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
# `tree_sitter_python_jll.jl` (v0.16.1+0)
2+
3+
This is an autogenerated package constructed using [`BinaryBuilder.jl`](https://github.com/JuliaPackaging/BinaryBuilder.jl). The originating [`build_tarballs.jl`](https://github.com/JuliaPackaging/Yggdrasil/blob/feddfc2f3c4d7c008e0dfc9a27073f15a29a3fe9/T/tree_sitter_python/build_tarballs.jl) script can be found on [`Yggdrasil`](https://github.com/JuliaPackaging/Yggdrasil/), the community build tree.
4+
5+
For more details about JLL packages and how to use them, see `BinaryBuilder.jl` [documentation](https://juliapackaging.github.io/BinaryBuilder.jl/dev/jll/).
6+
7+
## Sources
8+
9+
The tarballs for `tree_sitter_python_jll.jl` have been built from these sources:
10+
11+
* compressed archive: https://github.com/tree-sitter/tree-sitter-python/archive/v0.16.1.tar.gz (SHA256 checksum: `b1ccedf10f930042ec2c46335394424634d797c3039e61478612934e81fa943c`)
12+
* files in directory, relative to originating `build_tarballs.jl`: [`./bundled`](https://github.com/JuliaPackaging/Yggdrasil/tree/feddfc2f3c4d7c008e0dfc9a27073f15a29a3fe9/T/tree_sitter_python/bundled)
13+
14+
## Platforms
15+
16+
`tree_sitter_python_jll.jl` is available for the following platforms:
17+
18+
* `Linux(:aarch64, libc=:glibc)` (`aarch64-linux-gnu`)
19+
* `Linux(:aarch64, libc=:musl)` (`aarch64-linux-musl`)
20+
* `Linux(:armv7l, libc=:glibc, call_abi=:eabihf)` (`armv7l-linux-gnueabihf`)
21+
* `Linux(:armv7l, libc=:musl, call_abi=:eabihf)` (`armv7l-linux-musleabihf`)
22+
* `Linux(:i686, libc=:glibc)` (`i686-linux-gnu`)
23+
* `Linux(:i686, libc=:musl)` (`i686-linux-musl`)
24+
* `Windows(:i686)` (`i686-w64-mingw32`)
25+
* `Linux(:powerpc64le, libc=:glibc)` (`powerpc64le-linux-gnu`)
26+
* `MacOS(:x86_64)` (`x86_64-apple-darwin14`)
27+
* `Linux(:x86_64, libc=:glibc)` (`x86_64-linux-gnu`)
28+
* `Linux(:x86_64, libc=:musl)` (`x86_64-linux-musl`)
29+
* `FreeBSD(:x86_64)` (`x86_64-unknown-freebsd11.1`)
30+
* `Windows(:x86_64)` (`x86_64-w64-mingw32`)
31+
32+
## Products
33+
34+
The code bindings within this package are autogenerated from the following `Products`:
35+
36+
* `LibraryProduct`: `libtreesitter_python`

src/tree_sitter_python_jll.jl

Lines changed: 57 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,57 @@
1+
module tree_sitter_python_jll
2+
3+
if isdefined(Base, :Experimental) && isdefined(Base.Experimental, Symbol("@optlevel"))
4+
@eval Base.Experimental.@optlevel 0
5+
end
6+
7+
if VERSION < v"1.3.0-rc4"
8+
# We lie a bit in the registry that JLL packages are usable on Julia 1.0-1.2.
9+
# This is to allow packages that might want to support Julia 1.0 to get the
10+
# benefits of a JLL package on 1.3 (requiring them to declare a dependence on
11+
# this JLL package in their Project.toml) but engage in heroic hacks to do
12+
# something other than actually use a JLL package on 1.0-1.2. By allowing
13+
# this package to be installed (but not loaded) on 1.0-1.2, we enable users
14+
# to avoid splitting their package versions into pre-1.3 and post-1.3 branches
15+
# if they are willing to engage in the kinds of hoop-jumping they might need
16+
# to in order to install binaries in a JLL-compatible way on 1.0-1.2. One
17+
# example of this hoop-jumping being to express a dependency on this JLL
18+
# package, then import it within a `VERSION >= v"1.3"` conditional, and use
19+
# the deprecated `build.jl` mechanism to download the binaries through e.g.
20+
# `BinaryProvider.jl`. This should work well for the simplest packages, and
21+
# require greater and greater heroics for more and more complex packages.
22+
error("Unable to import tree_sitter_python_jll on Julia versions older than 1.3!")
23+
end
24+
25+
using Pkg, Pkg.BinaryPlatforms, Pkg.Artifacts, Libdl
26+
import Base: UUID
27+
28+
# We put these inter-JLL-package API values here so that they are always defined, even if there
29+
# is no underlying wrapper held within this JLL package.
30+
const PATH_list = String[]
31+
const LIBPATH_list = String[]
32+
33+
# Load Artifacts.toml file
34+
artifacts_toml = joinpath(@__DIR__, "..", "Artifacts.toml")
35+
36+
# Extract all platforms
37+
artifacts = Pkg.Artifacts.load_artifacts_toml(artifacts_toml; pkg_uuid=UUID("88db161d-10c7-51e6-aa56-e32ecf738a46"))
38+
platforms = [Pkg.Artifacts.unpack_platform(e, "tree_sitter_python", artifacts_toml) for e in artifacts["tree_sitter_python"]]
39+
40+
# Filter platforms based on what wrappers we've generated on-disk
41+
filter!(p -> isfile(joinpath(@__DIR__, "wrappers", replace(triplet(p), "arm-" => "armv7l-") * ".jl")), platforms)
42+
43+
# From the available options, choose the best platform
44+
best_platform = select_platform(Dict(p => triplet(p) for p in platforms))
45+
46+
# Silently fail if there's no binaries for this platform
47+
if best_platform === nothing
48+
@debug("Unable to load tree_sitter_python; unsupported platform $(triplet(platform_key_abi()))")
49+
else
50+
# Load the appropriate wrapper. Note that on older Julia versions, we still
51+
# say "arm-linux-gnueabihf" instead of the more correct "armv7l-linux-gnueabihf",
52+
# so we manually correct for that here:
53+
best_platform = replace(best_platform, "arm-" => "armv7l-")
54+
include(joinpath(@__DIR__, "wrappers", "$(best_platform).jl"))
55+
end
56+
57+
end # module tree_sitter_python_jll

src/wrappers/aarch64-linux-gnu.jl

Lines changed: 47 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,47 @@
1+
# Autogenerated wrapper script for tree_sitter_python_jll for aarch64-linux-gnu
2+
export libtreesitter_python
3+
4+
## Global variables
5+
PATH = ""
6+
LIBPATH = ""
7+
LIBPATH_env = "LD_LIBRARY_PATH"
8+
LIBPATH_default = ""
9+
10+
# Relative path to `libtreesitter_python`
11+
const libtreesitter_python_splitpath = ["lib", "libtreesitter_python.so"]
12+
13+
# This will be filled out by __init__() for all products, as it must be done at runtime
14+
libtreesitter_python_path = ""
15+
16+
# libtreesitter_python-specific global declaration
17+
# This will be filled out by __init__()
18+
libtreesitter_python_handle = C_NULL
19+
20+
# This must be `const` so that we can use it with `ccall()`
21+
const libtreesitter_python = "libtreesitter_python.so"
22+
23+
24+
"""
25+
Open all libraries
26+
"""
27+
function __init__()
28+
global artifact_dir = abspath(artifact"tree_sitter_python")
29+
30+
# Initialize PATH and LIBPATH environment variable listings
31+
global PATH_list, LIBPATH_list
32+
global libtreesitter_python_path = normpath(joinpath(artifact_dir, libtreesitter_python_splitpath...))
33+
34+
# Manually `dlopen()` this right now so that future invocations
35+
# of `ccall` with its `SONAME` will find this path immediately.
36+
global libtreesitter_python_handle = dlopen(libtreesitter_python_path)
37+
push!(LIBPATH_list, dirname(libtreesitter_python_path))
38+
39+
# Filter out duplicate and empty entries in our PATH and LIBPATH entries
40+
filter!(!isempty, unique!(PATH_list))
41+
filter!(!isempty, unique!(LIBPATH_list))
42+
global PATH = join(PATH_list, ':')
43+
global LIBPATH = join(vcat(LIBPATH_list, [joinpath(Sys.BINDIR, Base.LIBDIR, "julia"), joinpath(Sys.BINDIR, Base.LIBDIR)]), ':')
44+
45+
46+
end # __init__()
47+

src/wrappers/aarch64-linux-musl.jl

Lines changed: 47 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,47 @@
1+
# Autogenerated wrapper script for tree_sitter_python_jll for aarch64-linux-musl
2+
export libtreesitter_python
3+
4+
## Global variables
5+
PATH = ""
6+
LIBPATH = ""
7+
LIBPATH_env = "LD_LIBRARY_PATH"
8+
LIBPATH_default = ""
9+
10+
# Relative path to `libtreesitter_python`
11+
const libtreesitter_python_splitpath = ["lib", "libtreesitter_python.so"]
12+
13+
# This will be filled out by __init__() for all products, as it must be done at runtime
14+
libtreesitter_python_path = ""
15+
16+
# libtreesitter_python-specific global declaration
17+
# This will be filled out by __init__()
18+
libtreesitter_python_handle = C_NULL
19+
20+
# This must be `const` so that we can use it with `ccall()`
21+
const libtreesitter_python = "libtreesitter_python.so"
22+
23+
24+
"""
25+
Open all libraries
26+
"""
27+
function __init__()
28+
global artifact_dir = abspath(artifact"tree_sitter_python")
29+
30+
# Initialize PATH and LIBPATH environment variable listings
31+
global PATH_list, LIBPATH_list
32+
global libtreesitter_python_path = normpath(joinpath(artifact_dir, libtreesitter_python_splitpath...))
33+
34+
# Manually `dlopen()` this right now so that future invocations
35+
# of `ccall` with its `SONAME` will find this path immediately.
36+
global libtreesitter_python_handle = dlopen(libtreesitter_python_path)
37+
push!(LIBPATH_list, dirname(libtreesitter_python_path))
38+
39+
# Filter out duplicate and empty entries in our PATH and LIBPATH entries
40+
filter!(!isempty, unique!(PATH_list))
41+
filter!(!isempty, unique!(LIBPATH_list))
42+
global PATH = join(PATH_list, ':')
43+
global LIBPATH = join(vcat(LIBPATH_list, [joinpath(Sys.BINDIR, Base.LIBDIR, "julia"), joinpath(Sys.BINDIR, Base.LIBDIR)]), ':')
44+
45+
46+
end # __init__()
47+
Lines changed: 47 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,47 @@
1+
# Autogenerated wrapper script for tree_sitter_python_jll for armv7l-linux-gnueabihf
2+
export libtreesitter_python
3+
4+
## Global variables
5+
PATH = ""
6+
LIBPATH = ""
7+
LIBPATH_env = "LD_LIBRARY_PATH"
8+
LIBPATH_default = ""
9+
10+
# Relative path to `libtreesitter_python`
11+
const libtreesitter_python_splitpath = ["lib", "libtreesitter_python.so"]
12+
13+
# This will be filled out by __init__() for all products, as it must be done at runtime
14+
libtreesitter_python_path = ""
15+
16+
# libtreesitter_python-specific global declaration
17+
# This will be filled out by __init__()
18+
libtreesitter_python_handle = C_NULL
19+
20+
# This must be `const` so that we can use it with `ccall()`
21+
const libtreesitter_python = "libtreesitter_python.so"
22+
23+
24+
"""
25+
Open all libraries
26+
"""
27+
function __init__()
28+
global artifact_dir = abspath(artifact"tree_sitter_python")
29+
30+
# Initialize PATH and LIBPATH environment variable listings
31+
global PATH_list, LIBPATH_list
32+
global libtreesitter_python_path = normpath(joinpath(artifact_dir, libtreesitter_python_splitpath...))
33+
34+
# Manually `dlopen()` this right now so that future invocations
35+
# of `ccall` with its `SONAME` will find this path immediately.
36+
global libtreesitter_python_handle = dlopen(libtreesitter_python_path)
37+
push!(LIBPATH_list, dirname(libtreesitter_python_path))
38+
39+
# Filter out duplicate and empty entries in our PATH and LIBPATH entries
40+
filter!(!isempty, unique!(PATH_list))
41+
filter!(!isempty, unique!(LIBPATH_list))
42+
global PATH = join(PATH_list, ':')
43+
global LIBPATH = join(vcat(LIBPATH_list, [joinpath(Sys.BINDIR, Base.LIBDIR, "julia"), joinpath(Sys.BINDIR, Base.LIBDIR)]), ':')
44+
45+
46+
end # __init__()
47+

0 commit comments

Comments
 (0)