If you really want to recreate what setup.py did, you can try

*pip install --target /home/weewx/bin weewx*
*python3 /home/weewx/bin/weectl.py station create /home/weewx*

Normally, pip installs into the site-packages subdirectory of whatever
instance of python you are using.  The first line tells pip to install into
/home/weewx/bin instead.

The second line says to create a new station under the directory
/home/weewx. So the configuration file, skins, archive database, etc, will
all be put in /home/weewx

The results will approximate an old setup.py install with a couple of
differences:
1. *Everything* will be put in /home/weewx. That is, not just the weewx
code, but also its dependencies.
2. The files weewxd.py and weectl.py are not executable. You have to give
them as an argument to python3. For example,

*    python3 /home/weewx/bin/weewxd.py /home/weewx/weewx.conf*



On Sat, Oct 5, 2024 at 5:21 PM Dan'l B <[email protected]> wrote:

> It seems to me I saw a comment that using a venv it is still possible to
> enable the setup to locate all weewx files in a single folder, as setup.py
> used to do.
>
> I've looked through the wiki and docs and can't find anything.
>
> Can this be done?
>
> --
> You received this message because you are subscribed to the Google Groups
> "weewx-user" 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/weewx-user/2f2773c1-db59-4e51-a64b-85c6aac6c109n%40googlegroups.com
> <https://groups.google.com/d/msgid/weewx-user/2f2773c1-db59-4e51-a64b-85c6aac6c109n%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
>

-- 
You received this message because you are subscribed to the Google Groups 
"weewx-user" 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/weewx-user/CAPq0zEBd_39yXEdr%3DJ-k0aYfq6dRVJOsazictOcj4NTD%3DxUR_A%40mail.gmail.com.

Reply via email to