Matt:

So I stand corrected :) 

I tried your suggestion in another TrueNAS FreeBSD 12.2 jail and it worked. 
I checked the final weewxd and wee_reports files in /home/weewx/bin and 
their shebangs were set to #!/usr/local/bin/python3 as you indicated. 

*Evan:  You may want to revise your install process to skip the symbolic 
link.*

for this procedure Matt, should there be an update to the setup 
documentation ( http://weewx.com/docs/setup.htm ) for those users that use 
FreeBSD? If there is a github repository for the setup documentation, I am 
willing to make the changes and send in a PR for you all to review. If 
there is another place where this procedure should go, please advise.

Just let me know if you need my assistance.

DDJ



On Thursday, September 23, 2021 at 9:39:37 AM UTC-4 matthew wall wrote:

> instead of doing the symlink, you should be able to do this:
>
> /usr/local/bin/python3 setup.py build
> /usr/local/bin/python3 setup.py install
>
> when you use setup.py to build and install, it modifies the shebang line 
> of each entry point to refer to whatever python you used to invoke it.  so 
> whatever ends up in /home/weewx (or wherever you installed weewx) has a 
> shebang bespoke to your system.
>
> the reason we have the 'env python' shebang is to make the weewx entry 
> points as generic as possible (in particular, not specific to how things 
> happen to be done on the latest linux release).  that lets you run weewx 
> directly from the source tree without modifying any python code just to use 
> a specific python interpreter.
>
> m
>
>
> On Wednesday, September 22, 2021 at 5:27:13 PM UTC-4 [email protected] 
> wrote:
>
>> 3. Grab weewx and decompress it in your home folder. In this example 
>> below, we are going to get WeeWX 4.5.1
>>
>> fetch https://weewx.com/downloads/weewx-4.5.1.tar.gz
>> tar xvfz weewx-4.5.1.tar.gz
>> cd weewx-4.5.1
>> ./setup.py build
>> ./setup.py install
>>
>

-- 
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/a3789c30-2061-4981-beae-336c2892ee5bn%40googlegroups.com.

Reply via email to