2 ms·
The first thing I do when deploying to an existing machine/hard metal: I Grab the pyenv installer, set it up. Then I build python on target machine. MAKE_O
by nurettin 6y ago
The first thing I do when deploying to an existing machine/hard metal: I Grab the pyenv installer, set it up.
Then I build python on target machine.
MAKE_OPTS="-j8" CONFIGURE_OPTS="--enable-shared --enable-optimizations --with-computed-gotos" CFLAGS="-march=native -O2 -pipe" pyenv install -f 3.8.5
This takes a while but end result is a well enough optimized python. I also replace standard asyncio loop with uvloop to speed things up a little for async tasks.
- hprotagonist 6y agoI don't usually go beyond --enable-shared, but yeah, me too.