My first attempt at a package.

David Lowry-Duda david at lowryduda.com
Tue Jul 19 10:57:40 EDT 2022


On Tue, Jul 19, 2022 at 03:58:41PM +0200, Antoon Pardon wrote:
>I am writing a python package which has the following structure
>
>PACKAGE
>   * module1.py
>   * module2.py
>   * data.cfg
>
>However the data.cfg should be build at installation time.
>
>Can someone give advise on which packaging tool and how
>to use it, to accomplisch this.

A lot of good packaging information can be found at

https://packaging.python.org/en/latest/

and in particular at

https://packaging.python.org/en/latest/tutorials/packaging-projects/

and

https://packaging.python.org/en/latest/overview/

There are a couple of different ways to handle python packaging, and it 
can be a bit confusing. But following the tutorial on packaging is a 
good start.

- DLD


More information about the Python-list mailing list