-
-
Notifications
You must be signed in to change notification settings - Fork 1.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
py-findpython: new port #27690
base: master
Are you sure you want to change the base?
py-findpython: new port #27690
Conversation
10eb598
to
8ef825d
Compare
python/py-findpython/Portfile
Outdated
# borrowed from https://trac.macports.org/ticket/72050 | ||
if {${name} ne ${subport}} { | ||
if {${python.version} eq 39} { | ||
build.args --skip-dependency-check |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
why do we need this?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I was hitting the same dependency issue with pdm as seen in that ticket. You can also see it in the GH actions logs for the first commits I pushed to this PR, e.g. https://github.com/macports/macports-ports/actions/runs/13361861384/job/37312763006
It is only on python 3.9. I would drop 3.9 as a subport but poetry still will want it.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
looks like you're missing a dependency on py-packaging
. Not sure where the message about missing pdm-backend
and importlib-metadata
originate from but just skipping the dependency check doesn't seem like a good idea....
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Take a look at the GH action output under "Installing dependencies for py39-findpython", you can see it is installing py-packaging. I was able to reproduce this locally too, where I could confirm that py39-packaging was installed but it would still fail with that error.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
you are not declaring a dependency on py-packaging
, so it can't/shouldn't be installing that. I am not sure what the pdm
backend is doing with the pdm.lock
file - perhaps it's getting dependencies from there. But either way, this isn't correct.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
i'll do a push with suggested fixes and we'll see if it fails
Description
New dependency for poetry
Type(s)
Tested on
macOS 14.6.1 23G93 x86_64
Xcode 16.2 16C5032a
Verification
Have you
port lint
?sudo port test
?sudo port -vst install
?