Overview
A start point for the greater python guide for SteamOS.
NEW
Commeted out stuff left for reference I am not sure if we need all these libraries I already had most of them installed.
Eventually I plan to write a clear path to setting up a killer SteamOS dev environment so this is more a info dump until I can get back around to writing tutorials.
#apt install gcc-4.9 g++-4.9 gcc-multilib g++-multilib
#apt install libgdbm-dev
#apt install gcc-4.9-doc libstdc++6-4.9-dbg lib32stdc++6-4.9-dbg libx32stdc++6-4.9-dbg glibc-doc libstdc++-4.9-doc
#apt install libssl-dev zlib1g-dev
#2 – not sudo
wget [link]
mv Python-3.6.8.tgz /home/desktop/Downloads/Python-3.6.8.tgz
cd /home/desktop/Downloads
tar zxvf Python-3.6.8.tgz
#cd /home/desktop/Downloads/Python-3.6.8
#4
#cd /home/desktop/Downloads/Python-3.6.8
##./configure –prefix=/home/desktop/Downloads/Python-3.6.8 –enable-shared LDFLAGS=”-Wl,-rpath /home/desktop/Downloads/Python-3.6.8/Lib”
##./configure –prefix=/home/desktop/Downloads/Python-3.6.8
./configue
##[note:] for release we will want to –enable-optimizations (to the ./configure)
make
# TEST
cd ~
~/Downloads/Python-3.6.8/python -m venv env
source env/bin/activate
# Test like check python version
deactivate
Test that default SteamOS python version is left untouched.
python3 –version
which python3
UPDATES:
apt install libsqlite0 sqlite sqlite3
apt install libsqlite-dev libsqlite3-dev
./configure –enable-loadable-sqlite-extensions
make
PreReqs:
sources.list
deb [link] jessie-backports main contrib non-free
deb-src [link] jessie-backports main contrib non-free
#this gives sqlite3 version: 3.16.2
apt install -t jessie-backports libsqlite0 sqlite sqlite3
apt install -t jessie-backports libsqlite-dev libsqlite3-dev
REMOVE THE ENV:
rm -rf env
COULD BE EASIER:
pip install pysqlite3
# Below left just for reference
venv : virtualenv
[link]> pip install virtualenv
…
pip
[link]sudo apt-get install python-pip