Document configure options regarding Python (module, app)#1788
Document configure options regarding Python (module, app)#1788jimklimov merged 28 commits intonetworkupstools:masterfrom
Conversation
|
❌ Build nut 2.8.0.290-master failed (commit dbe7211288 by @jimklimov) |
|
In general this feels too complicated.
|
…tions and autogen.sh fuss about it [networkupstools#1787]
… to different PYTHON versions [networkupstools#1787]
…act path from --with-python (if available) to match its site-packages [networkupstools#1787]
|
You mentioned A thought is that given a |
|
Well, for systems that have it - literally indeed. For others, fall back to the "FOO" pathname (which may be a symlink so less useful). Good point about UPDATE: I also don't quite see options that would tell me the "real path" to interpreter:
Maybe something can be gleaned from those files, but feels like a not quite portable adventure... but being a fallback to try and skip in case of troubles, may be good enough, e.g.: The python |
|
I thought that e.g. python3.10-config was the standard approach in python's install -- that's not the kind of thing pkgsrc makes up. But fair point that if others don't follow that, you can't relay on it. But, I only really care what happens when one provides the full path to a real program, since that's how my world is. |
|
Thanks for working on this. I tested this and it's mostly ok. However, with |
|
As a counter-offer, I'll update the docs with the suggestion to use the option :) |
|
Heh, UPDATE: NOT always |
|
Neat: So here the However for Wondering how well MSYS2/mingw would play with that, considering its resolution to windows paths rather than POSIXy shims: And ouch, this does not help build confidence (gotta filter discovered names after all): |
|
Hm, seems --without-python2 now misbehaves |
|
Let me know when you want me to retest (i.e., when you have come to a stopping place and think it's ok). |
…ON2/PYTHON3 from PYTHON first (if version is suitable) [networkupstools#1787]
…nd build environment dictated pathname first, fall back to "env" second [networkupstools#1787] Note: this does not apply to --with-python="prog args" as a bit too complex for now
…names without an exact version (2.* or 3.*) [networkupstools#1787]
…o resolve the versioned interpreter starting from any initial name (check sanity afterwards, not before) [networkupstools#1787]
… not a strict expected pattern, fall back to search [networkupstools#1787]
Hopefully found the responsible typo, fixed. |
|
I made a distfile from this and am able to build it in pkgsrc with only the chosen python. So WORKSFORME and thanks for hacking on this. |
|
Super! Thanks for the report! |
Closes: #1787
Also note #1792