You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@buildstream.apache.org by "kotborealis (via GitHub)" <gi...@apache.org> on 2025/11/01 12:05:37 UTC

[PR] fix: use find_spec for pip plugins [buildstream]

kotborealis opened a new pull request, #2084:
URL: https://github.com/apache/buildstream/pull/2084

   For pip plugins installed in editable mode, via `pip install -e ...`, buildstream failed to resolve the actual location of source files of a plugin.
   
   `locate_file` resolved location to `site-packages/<module-name>/elements/<element.py>`, while `site-packages` contained only the `pth` file pointing to the another directory.
   
   This patch updates `pluginoriginpip.py` to use `find_spec` to find files. It works properly with editable packages and `pth` files.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@buildstream.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [PR] fix: use find_spec for pip plugins [buildstream]

Posted by "kotborealis (via GitHub)" <gi...@apache.org>.
kotborealis commented on PR #2084:
URL: https://github.com/apache/buildstream/pull/2084#issuecomment-3635897733

   Accidentally closed this while messing with git rebases, reopening.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@buildstream.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [PR] fix: use find_spec for pip plugins [buildstream]

Posted by "kotborealis (via GitHub)" <gi...@apache.org>.
kotborealis closed pull request #2084: fix: use find_spec for pip plugins
URL: https://github.com/apache/buildstream/pull/2084


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@buildstream.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [PR] fix: use find_spec for pip plugins [buildstream]

Posted by "abderrahim (via GitHub)" <gi...@apache.org>.
abderrahim merged PR #2084:
URL: https://github.com/apache/buildstream/pull/2084


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@buildstream.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [PR] fix: use find_spec for pip plugins [buildstream]

Posted by "kotborealis (via GitHub)" <gi...@apache.org>.
kotborealis commented on PR #2084:
URL: https://github.com/apache/buildstream/pull/2084#issuecomment-3602208789

   Any chance this could be merged?


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@buildstream.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [PR] fix: use find_spec for pip plugins [buildstream]

Posted by "abderrahim (via GitHub)" <gi...@apache.org>.
abderrahim commented on PR #2084:
URL: https://github.com/apache/buildstream/pull/2084#issuecomment-3602223115

   Can you please rebase it?


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@buildstream.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org