Earlier quoted context omitted.
You're not really answering why they are important? Is it because .deb packages will install inside dist-packages and when you run pip install as root without a virtual env, it installs inside site-packages? I don't really see how this helps though? Sure you won't get paths to clash between the two but you still have duplicate packages which is probably not what you want..
Debian ships packages with a coherent dependency structure that crosses language boundaries. You don't need to care what language something is written in to be able to "apt install" it. The expectation is that if it "apt installed" then it should Just Work because all the required dependencies were also pulled in from Debian at the same time. Debian also tries to ship just one version of everything in a single distri…
Ask HN: Is anyone using PyPy for real work?
101–110 of 185 posts
Re: Ask HN: Is anyone using PyPy for real work?
#102But while programming as a hobby at home, mostly small-scale simulations, PyPy is my default interpreter for Python. It seems PyPy has a sweet spot on code written relying heavily on OOP style, with a lot of method calls and self invocation. I consistently get 8-10x speed improvements.
Re: Ask HN: Is anyone using PyPy for real work?
#103Thanks for reminding me to look at PyPy again. I usually start all my new Python projects with this block of commands that I keep handy: Create venv and activate it and install packages: python3 -m venv venv source venv/bin/activate python3 -m pip install --upgrade pip python3 -m pip install wheel pip install -r requirements.txt I wanted a similar one-liner that I could use on a fresh Ubuntu machine so I can try out…
Re: Ask HN: Is anyone using PyPy for real work?
#104Thanks for reminding me to look at PyPy again. I usually start all my new Python projects with this block of commands that I keep handy: Create venv and activate it and install packages: python3 -m venv venv source venv/bin/activate python3 -m pip install --upgrade pip python3 -m pip install wheel pip install -r requirements.txt I wanted a similar one-liner that I could use on a fresh Ubuntu machine so I can try out…
So if you have PyPy already on your machines;
pypy -m venv venv && \
source venv/bin/activate && \
pip install --upgrade pip && \
pip install wheel && \
pip install -r requirements.txt
Was not that bad after all, when my initial thought was that do I need all the above to just initiate the project :DRe: Ask HN: Is anyone using PyPy for real work?
#105Earlier quoted context omitted.
Debian ships packages with a coherent dependency structure that crosses language boundaries. You don't need to care what language something is written in to be able to "apt install" it. The expectation is that if it "apt installed" then it should Just Work because all the required dependencies were also pulled in from Debian at the same time. Debian also tries to ship just one version of everything in a single distri…
Yep, I screw things up all the time with packages in homebrew that are written in python, when I forget to switch into a virtual env before doing stuff with pip. Debian's solution seems very sensible. And it is the same solution as homebrew, I suppose, as long as you don't interact with any of the homebrew-installed packages via pip. But I find it quite easy to accidentally do that.
export PIP_REQUIRE_VIRTUALENV=1
has been quite helpful in the past as pip then refuses to just install things directly.Re: Ask HN: Is anyone using PyPy for real work?
#106Re: Ask HN: Is anyone using PyPy for real work?
#107Thanks for reminding me to look at PyPy again. I usually start all my new Python projects with this block of commands that I keep handy: Create venv and activate it and install packages: python3 -m venv venv source venv/bin/activate python3 -m pip install --upgrade pip python3 -m pip install wheel pip install -r requirements.txt I wanted a similar one-liner that I could use on a fresh Ubuntu machine so I can try out…
Just a note; these scrips are not comparable in monstrosity as the first is about to initiate the project when as the second one is to initiate whole PyPy installation. So if you have PyPy already on your machines; pypy -m venv venv && \ source venv/bin/activate && \ pip install --upgrade pip && \ pip install wheel && \ pip install -r requirements.txt Was not that bad after all, when my initial thought was that do I…
Re: Ask HN: Is anyone using PyPy for real work?
#108Quite often you would want to just thank somebody, or say that you would prefer it that way and don't understand why is it this way or it would be cool to have this or that, but of course opening ticket on github feels like wasting time of the maintainer and especially when you have some feedback like e.g. what would you like to see or what you do and don't like it feels entitled because well you can do it yourself, you can fork etc.
It would need to be low friction for both sides. Preferably with no way to respond so that there's zero pressure and little time waste for maintainers.
Mail feels like you want something, it works for thank you but still feels bad on receiving end when you just ignore them.
Re: Ask HN: Is anyone using PyPy for real work?
#109Re: Ask HN: Is anyone using PyPy for real work?
#110Thanks for reminding me to look at PyPy again. I usually start all my new Python projects with this block of commands that I keep handy: Create venv and activate it and install packages: python3 -m venv venv source venv/bin/activate python3 -m pip install --upgrade pip python3 -m pip install wheel pip install -r requirements.txt I wanted a similar one-liner that I could use on a fresh Ubuntu machine so I can try out…
For a more apples to apples comparison, you would install pypy using your package manager, e.g. apt install pypy3 or brew install pypy3 . On Linux, you might have to add a package repo first.