Putting aside the wisdom of tacking against the prevailing Python winds, a
key option that we depend on, "data_files", is going away. It allows you to
list any data files, whether in a package or not, and have access to it
from within the setup.py() machinery. Without that, you're left with
finding the files on your own. See the link I posted earlier:
https://github.com/pypa/setuptools/discussions/2648

Our new "second step" tool would use importlib.resources
<https://docs.python.org/3/library/importlib.resources.html> to find
package data, which is still supported (indeed, *encouraged*), and then
copy it into place.

Yup. One more step.



On Tue, Nov 8, 2022 at 10:23 AM Vince Skahan <[email protected]> wrote:

> On Tuesday, November 8, 2022 at 10:02:26 AM UTC-8 Tom Keffer wrote:
>
>> Sorry, Vince, but I don't like your one file = one option approach. There
>> would be dozens of files --- impossible to support.
>>
>> Also, we cannot use setup.py() in an imperative approach any longer. No
>> modifications of weewx.conf, or any other file. All you can do with the new
>> setuptools is move things into place. Everything is declarative. No running
>> of code.
>>
>
> Sure - just throwing it out there if an 'assemble from pieces' kind of
> thing is worth anything to think about investigating.  Perhaps that is
> sidetracking things a bit anyway.  Sorry.
>
>
> Could you explain what your second paragraph means in layman's terms
> because I'm obviously not getting it.
>
>    - if setup.py can only move code into place as step one
>    - then why can't a new second step's tool 'not' using setup.py do
>    whatever setup.py will not let you do  ?
>    - and then start up like we do now
>
> So a 'build install startup' scenario becomes a 'build install configure
> startup' future.  One more step.
>
> Is it really more complicated than that ?
>
> --
> You received this message because you are subscribed to the Google Groups
> "weewx-development" 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-development/d123f83e-5f26-4ea0-be12-cb62151bf9bdn%40googlegroups.com
> <https://groups.google.com/d/msgid/weewx-development/d123f83e-5f26-4ea0-be12-cb62151bf9bdn%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
>

-- 
You received this message because you are subscribed to the Google Groups 
"weewx-development" 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-development/CAPq0zEDU-OOu0Oe0%2BQJi46pyTt%2BOxCtOvPbToDxqh4kr04Lr%3DQ%40mail.gmail.com.

Reply via email to