Direct link to libpython3.so is not needed#1224
Direct link to libpython3.so is not needed#1224lamikr wants to merge 1 commit intometa-pytorch:mainfrom
Conversation
There is no need to link custom_ops libraries directly against the libpython as python interpreter will load the python related dependencies at runtime. Building, linking and execution of applications using torchcodec will work without linking the custom_ops libraries directly against the libpython-library. I have tested this fix on environment which have python 3.12 installed but does not have separate libpython library installed. Related to: meta-pytorch#1164 Signed-off-by: Mika Laitio <mika.laitio@amd.com>
🔗 Helpful Links🧪 See artifacts and rendered test results at hud.pytorch.org/pr/meta-pytorch/torchcodec/1224
Note: Links to docs will display an error until the docs builds have been completed. ❌ 2 New FailuresAs of commit 22db42a with merge base 65ed0d5 ( NEW FAILURES - The following jobs have failed:
This comment was automatically generated by Dr. CI and updates every 15 minutes. |
|
Hi @lamikr! Thank you for your pull request and welcome to our community. Action RequiredIn order to merge any pull request (code, docs, etc.), we require contributors to sign our Contributor License Agreement, and we don't seem to have one on file for you. ProcessIn order for us to review and merge your suggested changes, please sign at https://code.facebook.com/cla. If you are contributing on behalf of someone else (eg your employer), the individual CLA may not be sufficient and your employer may need to sign the corporate CLA. Once the CLA is signed, our tooling will perform checks and validations. Afterwards, the pull request will be tagged with If you have received this in error or have any questions, please contact us at cla@meta.com. Thanks! |
|
Hi @lamikr, thanks for looking into this and creating the PR! We don't know the exact reason that From the CI, it seems like removing this would lead to a fatal error on windows due to If you can fix the error on windows in the CI we would be happy to take another look! |
There is no need to link custom_ops libraries directly against the libpython as python interpreter will load the python related dependencies at runtime.
Building, linking and execution of applications using torchcodec will work without linking the custom_ops libraries directly against the libpython-library.
I have tested this fix on environment which have
python 3.12 installed but does not have separate libpython library installed.
Related to: #1164