On Sun, Jul 21, 2024 at 9:35 PM Martin Blais <[email protected]> wrote:

> On Tue, Jun 25, 2024 at 4:23 PM Eric Altendorf <[email protected]>
> wrote:
>
>>
>> Second is a question, for me specifically right now I'd like to revisit
>> my cost-basis PR, which means I'd like to get beancount set up in dev mode
>> where I can make changes and run the test suite.  What's the right way to
>> do this?
>>
>
> set PYTHONPATH
> "make test"
> "make lint"
>
> Old skool :-)
>

Thanks for updating the docs, this was helpful.  A few suggestions and then
one question where I'm stuck:

pip, as a general pattern, gets itself confused very easily and your state
of deps can get corrupted.  Having one global system-wide state which you
update by running `sudo pip` is a recipe for misery.  These days I *never*
run pip outside of a venv that I can toss and start fresh easily.  I would
recommend those instructions (also then you don't need sudo access).

For "Installing for Development", can't you just use `pip install -e` ?

I personally would recommend making other packages (like pytest) that are
only needed for development part of the dependency list anyway.  The python
install process should simply be git clone, create venv, pip install [-e];
IMHO the project should be set up so that just works.

It didn't seem to break my install, but the top of your makefile contains
your personal paths:
INPUT = $(HOME)/q/office/accounting/blais.beancount
DOWNLOADS = $(HOME)/u/Downloads


However, I'm now running into the issues discussed on this thread:
https://groups.google.com/g/beancount/c/7ppbyz_5B5w/m/YlHiKhynFAAJ?pli=1

In particular, running `make test` shows all tests failing with errors of
the form
ERROR beancount/core/account_test.py - FileNotFoundError: [Errno 2] No such
file or directory: '/tmp/pip-build-env-urgb73ml/normal/bin/ninja'

According to that thread, the solution is to install ninja (if so, that
should be added to the docs, I guess).  However, I still get the same
errors after installing ninja in the venv.  I also tried installing meson
and meson-python for good measure, still no go.  It's not clear to me from
that thread whether meson is used or required.






>
>
> --
> You received this message because you are subscribed to the Google Groups
> "Beancount" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to [email protected].
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/beancount/CAK21%2BhM8fiP0MU06er%3DiCv-HsED37xSt5J3m-e-hdq-E5t3Lag%40mail.gmail.com
> <https://groups.google.com/d/msgid/beancount/CAK21%2BhM8fiP0MU06er%3DiCv-HsED37xSt5J3m-e-hdq-E5t3Lag%40mail.gmail.com?utm_medium=email&utm_source=footer>
> .
>

-- 
You received this message because you are subscribed to the Google Groups 
"Beancount" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/beancount/CAFXPr0uVQdViW8zUo5LmjcazZEHA1NVOdOY%3DyPZh1j3iRedOVQ%40mail.gmail.com.

Reply via email to