mozjs102: use py3_sitelib in pre_configure

This commit is contained in:
oreo639 2024-02-07 13:38:34 -08:00
parent 00b0bb0ff4
commit 73dd1d1db8
1 changed files with 2 additions and 3 deletions

View File

@ -47,14 +47,13 @@ pre_configure() {
sh ../../build/autoconf/autoconf.sh configure.in > configure sh ../../build/autoconf/autoconf.sh configure.in > configure
chmod 0755 configure chmod 0755 configure
local _sitedir=$(python3 -c 'import sysconfig; print(sysconfig.get_paths()["purelib"])')
rm -rf ${wrksrc}/third_party/python/six rm -rf ${wrksrc}/third_party/python/six
mkdir ${wrksrc}/third_party/python/six mkdir ${wrksrc}/third_party/python/six
ln -s ${_sitedir}/six.py ${wrksrc}/third_party/python/six ln -s /${py3_sitelib}/six.py ${wrksrc}/third_party/python/six
rm -rf ${wrksrc}/third_party/python/looseversion rm -rf ${wrksrc}/third_party/python/looseversion
mkdir ${wrksrc}/third_party/python/looseversion mkdir ${wrksrc}/third_party/python/looseversion
ln -s ${_sitedir}/looseversion/__init__.py ${wrksrc}/third_party/python/looseversion/looseversion.py ln -s /${py3_sitelib}/looseversion/__init__.py ${wrksrc}/third_party/python/looseversion/looseversion.py
echo "vendored:third_party/python/looseversion" >> ${wrksrc}/python/sites/mach.txt echo "vendored:third_party/python/looseversion" >> ${wrksrc}/python/sites/mach.txt
} }