install gcc 14, set alternatives

zypper in -y gcc14-c++ gcc14
update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-14 1
update-alternatives --install /usr/bin/g++ g++ /usr/bin/g++-14 1
update-alternatives --install /usr/bin/c++ c++ /usr/bin/g++-14 1
update-alternatives --config gcc   
update-alternatives --config g++   
update-alternatives --config c++   

install old version openssl

wget --no-proxy  https://github.com/openssl/openssl/releases/download/OpenSSL_1_0_2d/openssl-1.0.2d.tar.gz
tar -xzf openssl-1.0.2d.tar.gz
cd openssl-1.0.2d
./config --prefix=/opt/openssl-1.0.2d
make -j$(nproc)
make install

install python 2.17

wget https://www.python.org/ftp/python/2.7.18/Python-2.7.18.tgz
tar -xzf Python-2.7.18.tgz
cd Python-2.7.18
./configure CPPFLAGS="-I/opt/openssl-1.0.2d/include/openssl" --prefix=/opt/python2.7.18 --enable-shared LDFLAGS=-Wl,-rpath=/opt/python2.7.18/lib,--disable-new-dtags --with-ensurepip=install
make -j$(nproc)
make install

setup virtualenv

/opt/python2.7.18/bin/pip2 install virtualenv
su - user
/opt/python2.7.18/bin/virtualenv --python=/opt/python2.7.18/bin/python2 ~/python2-virtualenv
source ~/python2-virtualenv/bin/activate
Python 2.7.18 (default, May 27 2026, 12:49:17) 
[GCC 14.3.1 20260409 [revision 046776dac7cc74bdbab36f450af80644a045858a]] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>>