Build and packaging library
  • Python 48.7%
  • Makefile 37.5%
  • Shell 13.8%
Find a file
Jan Lindemann 99a8d9140f
py-ns-dir.mk: Add file

Add py-ns-dir.mk. It's first intended use is inside the $(TOPDIR)/src/python/jw directories of each package. These are to be treated specially, because they contribute to the same namespace: jw.

This is true when installed, which means that no __init__.py should be packaged from that directory, see the guide linked below.

And it's also true when not installed, in which case there has to be a path-extending __init__.py in the directory. Normally, it should work without __init__.py in that case, as well, and it does for running Python code with PYTHONPATH pointing to the respective package roots. However, pyright doesn't seem to pull in code scattered over multiple locations without an old-style namespace path-extender, so we're likely going to add (but not install) an __init__.py there.

Not sure if it's going to be auto-generated py py-ns-dir.mk or committed to version control, we'll see with more testing.

Here's where I have my info from, aside from experiments.

https://packaging.python.org/en/latest/guides/packaging-namespace-packages/

Signed-off-by: Jan Lindemann <jan@janware.com>
2026-05-31 18:20:33 +02:00
.github/workflows build-package.yaml: Add workflow 2026-04-13 17:23:13 +02:00
bin bin, make, scripts: Re-add files necessary for packaging jw-build 2025-11-14 11:22:50 +01:00
conf conf/project: Add directory and variables 2026-05-31 18:20:31 +02:00
make py-ns-dir.mk: Add file 2026-05-31 18:20:33 +02:00
scripts python-tools.sh: Fix __init__.py linter complaints 2026-05-31 17:51:51 +02:00
src cmds.projects.CmdCreateFile: Add module 2026-05-31 18:20:29 +02:00
.gitignore Everywhere: Rename package "jw-build" to "jw-pkg" 2025-11-28 13:35:56 +01:00
HASH Release 1.0.0-225@suse-tumbleweed/x86_64 2026-05-21 10:24:49 +00:00
Makefile make: Replace RPM -> PKG 2026-03-16 14:57:50 +01:00
RELEASES Release 1.0.0-225@suse-tumbleweed/x86_64 2026-05-21 10:24:49 +00:00
VERSION Start version: 1.0.0-225 2026-05-21 10:10:54 +00:00