forked from pool/python-libcst
Resolve conflicts
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-libcst?expand=0&rev=19
This commit is contained in:
parent
48ef570ee9
commit
0aae44e0a5
@ -1,3 +1,4 @@
|
||||
|
||||
[source.crates-io]
|
||||
replace-with = "vendored-sources"
|
||||
|
||||
|
@ -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
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user