Matej Cepl 2022-02-22 21:32:18 +00:00 committed by Git OBS Bridge
parent 48ef570ee9
commit 0aae44e0a5
2 changed files with 4 additions and 1 deletions

View File

@ -1,3 +1,4 @@
[source.crates-io]
replace-with = "vendored-sources"

View File

@ -75,7 +75,8 @@ A concrete syntax tree with AST-like properties for Python 3.5+ programs.
%prep
%setup -q -n libcst-%{version}
tar x -C native/ -f %{SOURCE1}
(cd native ; mkdir -p .cargo ; cat %{SOURCE2} >>.cargo/config.toml)
mkdir -p .cargo && cat %{SOURCE2} >>.cargo/config.toml
(cd native && mkdir -p .cargo && cat %{SOURCE2} >>.cargo/config.toml)
%autopatch -p1
# wrong executable call when outside of venv (gh#Instagram/LibCST#468)
@ -98,6 +99,7 @@ cd native
}
cd ..
export CARGO_NET_OFFLINE=true PROFILE=release
cargo metadata --offline --manifest-path native/libcst/Cargo.toml --format-version 1
%python_build
%endif