Replies: 2 comments 2 replies
-
Hi @wb8tyw sorry for the delayed response.
The good news is that Usually I would advice the users to rely on the auto-discovery features, but since your project layout is very complex, you will have to either specify [tool.setuptools.packages.find]
include = ["d_rats*"]
I am not entirely sure what you mean here by "non library modules". Are you referring to auxiliary files and directories that don't get installed when your project is installed? In Python packages, usually you have only one top-level directory for the code that gets installed, and all files used during runtime (Python files, images, text files, data files ...) are contained inside this top-level directory. The exception being transient/mutable or user configuration files (which usually are created on-demand inside the user
Are you including these auxiliary files to run the program inside the package directory? Maybe it is worth to have a look on these docs.
For some kind of files you could try to use the Footnotes
|
Beta Was this translation helpful? Give feedback.
-
I would say this is natural. According to the build-system specification, setuptools would run
I believe that you can create a custom build step for those. You can have a look on this discussion for some pointers: #2591 (comment). |
Beta Was this translation helpful? Give feedback.
-
I am trying to convert an old project, d-rats to to be current, and need to get the packaging working.
I have finally got the project pretty much functional under Python 3, even though I have a lot of things to cleanup, but now I need to start getting the packaging working properly for testing the changes.
I tried to create a pyproject.toml and a setup.py for the existing flat layout, and all I ended up getting installed was some of the python modules. And I am not finding answers in the documentation.
I am finding terms mentioned for fields in the pyproject.toml like 'project-dir", and can not find any example of how they should be used.
I can not find anything about how to specify where to put the non library modules of the project.
It appears to have taken the directory of the the library modules as the base directory of the project, when the program is expecting that to be a sub-directory under the project name.
I am missing all the data files needed to actually run the program.
I see the all the files in the tarball, but something is missing to actually get them into the installed venv.
Everything runs when I run it from the git checkout now.
I am not sure what directory structure that I should end up with in the venv.
I was expecting something like:
With probably "share" directory tree for the man pages and the message catalogs.
Right now, I can not determine what to put in the setup files to get this going.
The lzhuf image has been put in the a platform specific generated tarball by the older setup.py
And for windows they were creating an EXE file, apparently containing a locally captured pythion environment.
For Windows support, I plan to use mysys2 python only initially.
Beta Was this translation helpful? Give feedback.
All reactions