python 3 hack
OBS-URL: https://build.opensuse.org/package/show/devel:languages:javascript/deno?expand=0&rev=73
This commit is contained in:
parent
e0dd2f4eed
commit
af3e2cd6ba
@ -1,3 +1,8 @@
|
||||
-------------------------------------------------------------------
|
||||
Tue Jun 21 17:22:03 UTC 2022 - Avindra Goolcharan <avindra@opensuse.org>
|
||||
|
||||
- apply workaround so that /usr/bin/python resolves to python3
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Sat Jun 18 21:18:04 UTC 2022 - Avindra Goolcharan <avindra@opensuse.org>
|
||||
|
||||
|
12
deno.spec
12
deno.spec
@ -30,15 +30,15 @@ Source1: vendor.tar.xz
|
||||
Source99: revendor_source.sh
|
||||
# see https://github.com/denoland/chromium_build/pull/197
|
||||
Patch0: fix-cflags.patch
|
||||
BuildRequires: clang
|
||||
# gcc-c++ needed to build SPIRV-Cross
|
||||
BuildRequires: clang
|
||||
BuildRequires: gcc-c++
|
||||
BuildRequires: gn
|
||||
BuildRequires: lld
|
||||
BuildRequires: llvm
|
||||
BuildRequires: ninja
|
||||
BuildRequires: pkgconfig
|
||||
BuildRequires: python
|
||||
BuildRequires: python3-base
|
||||
BuildRequires: python3-setuptools
|
||||
BuildRequires: rust >= 1.53.0
|
||||
BuildRequires: rust-packaging
|
||||
@ -64,7 +64,15 @@ updated with the --reload flag.
|
||||
%define cargo_registry $(pwd)/vendor
|
||||
%{cargo_prep}
|
||||
|
||||
|
||||
%build
|
||||
# workaround to use python3
|
||||
# where "python" is invoked
|
||||
mkdir -p "$(pwd)/bin"
|
||||
ln -sf %{_bindir}/python3 "$(pwd)/bin/python"
|
||||
export PATH="$PATH:$(pwd)/bin"
|
||||
|
||||
|
||||
export V8_FROM_SOURCE=1
|
||||
export CLANG_BASE_PATH=%{_prefix}
|
||||
# https://www.chromium.org/developers/gn-build-configuration
|
||||
|
Loading…
Reference in New Issue
Block a user