Skip to content

docs: qtvcp: use the python3 path for the packaged designer plugin - #4811

Open
revjmoney wants to merge 2 commits into
LinuxCNC:2.9from
revjmoney:docs-qtvcp-python3-plugin-path
Open

revjmoney wants to merge 2 commits into
LinuxCNC:2.9from
revjmoney:docs-qtvcp-python3-plugin-path

Conversation

@revjmoney

Copy link
Copy Markdown

Finishes the last item andypugh pointed out on #1320: the QtVCP docs still gave python2.7 locations for qtvcp_plugin.py in a package install.

The package installs it under $(SITEPY)/qtvcp/plugins (src/Makefile), and configure resolves SITEPY to the deb_system platlib, so the file is at /usr/lib/python3/dist-packages/qtvcp/plugins/qtvcp_plugin.py. The old paths were also missing their leading slash.

Targeted at 2.9 because it has the same text and the contributing guide puts doc fixes on the oldest applicable branch. Happy to retarget to master if you prefer.

Left alone on purpose:

  • The Spanish python2 paragraph just above is inside a //// FIXME comment block, so it is not rendered.
  • docs/src/gui/gladevcp.adoc (Troubleshooting) still mentions a stale /usr/lib/python2.6/dist-packages/hal.so. That is a historical upgrade tip rather than a wrong path, so whether to drop it is your call. I can add it here if you want.

Not built locally (no asciidoc toolchain on this machine); the change is two literal lines replaced by one.

Refs #1320

The Qt Designer section still gave python2.7 locations for
qtvcp_plugin.py in a package install. The package installs it under
$(SITEPY)/qtvcp/plugins (src/Makefile), which configure resolves to
the deb_system platlib, /usr/lib/python3/dist-packages. Also add the
leading slash the old paths were missing.

Refs LinuxCNC#1320
@grandixximo

Copy link
Copy Markdown
Contributor

Thanks. On the gladevcp hal.so tip: please drop it in this PR too.

It dates from 81f8f84 (2010), which renamed the C extension from hal.so to _hal.so and added the hal.py wrapper, so an upgraded python2.6 install could be left with a stale hal.so shadowing hal.py. That can't happen on 2.9 or master: they install into /usr/lib/python3/dist-packages and have only ever built _hal.so there, and Python 3 never looks in the python2.6 directory. The run-in-place make clean bullet right after it has the same origin, so it can go as well.

In docs/src/gui/gladevcp.adoc Troubleshooting, that means removing the "If you get Python errors, check whether there's still a ... hal.so" sentence with its "if yes, remove" continuation line, and the "If you're using run-in-place, do a 'make clean'" bullet. Keep "Run GladeVCP or AXIS from a terminal window." since that's still good advice.

2.9 is the right target; it merges up.

They date from 81f8f84 (2010), when hal.so became _hal.so and an
upgraded python2.6 install could keep an old hal.so that shadowed
hal.py. Current installs use /usr/lib/python3/dist-packages and have
only built _hal.so there, so neither the hal.so check nor the
run-in-place 'make clean' applies any more.

Refs LinuxCNC#1320
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants