First, it seems to (maybe?) work better with a venv running, which I didn't have. Ok, I can create one.
Next, `SetuptoolsDeprecationWarning: setup.py install is deprecated`, although I can live with that for now.
Next, I'm provided with a long list of ideas for how to enable `.pth` files, but https://setuptools.pypa.io/en/latest/deprecated/easy_install... strongly implies that `export PYTHONUSERBASE=`pwd`` prior to running setup should work. It doesn't.
Python, why does your ecosystem have to be so broken?
To make it work, use a virtualenv, seriously always use a virtualenv. Then inside: pip install --editable ./
This has been the standard way to install packages since forever. Don’t know why author complicates it with lower level setuptools. This is the same message that deprecationwarning is giving btw.
I'm going to argue, however, that "standard" is far too strong a word. I've been using Python on a near-daily basis for the last 4 years. I've never run into that, and I don't see it at the Hitchhiker's Guide.
Well, that and Python doesn't seem to do standard.
- https://benhoyt.com/writings/pygit/
[0]: https://github.com/codecrafters-io/build-your-own-x#build-yo...
“Write a Git Client from Scratch in 25 Minutes”
EDIT: from comment in the first page the author said it's custom typescript which isn't open-source yet, there's still hope :)
This book teach building Git from scratch with Ruby:
I find it very readable.
It’s nearly complete, I just have to finish a couple annoying edge cases around delta compression.
https://news.ycombinator.com/item?id=28735425 (194 points | Oct 3, 2021 | 23 comments)
https://news.ycombinator.com/item?id=24517925 (309 points | Sept 18, 2020 | 30 comments)