py_grpcio: Patch the setup.py to only link against the spack provided abseil#3107
py_grpcio: Patch the setup.py to only link against the spack provided abseil#3107mmancini-skao wants to merge 8 commits intospack:developfrom
Conversation
91614dd to
eec81d7
Compare
eec81d7 to
38f08cb
Compare
Co-authored-by: Adam J. Stewart <ajstewart426@gmail.com>
|
Hi @mmancini-skao , I compiled this package different times, changing version and/or dependecies but I always got an runtime error regarding With your first patch, I still had the same issue because the self.spec["abseil-cpp"].prefix.libdoes not exist in my My suggestion is to simplify and generalize your filter_file(
r'pathlib.Path("/usr")',
r'pathlib.Path("{}")'.format(self.spec["abseil-cpp"].prefix),
"setup.py",
string=True,
)Today I saw that the patch is changed, and now the path lib should exist because you are using Cheers |
|
Thank you for both your comments @Giuncan and @adamjstewart! Unfortunately, @Giuncan your patch wouldnt work for the dynlib. making sure that abseil-cpp was already installed. Most probably I am missing something. Let me know what you think. |
76f8b16 to
e5d2a39
Compare
e5d2a39 to
035b967
Compare
Can we fix this? |
This pull request introduces an update to the patching logic for the
py_grpciopackage to improve compatibility with custom installation prefixes for theabseil-cppdependency. The change ensures that the build process correctly locates shared libraries in the appropriate directory, rather than assuming a system path.Dependency patch improvement:
patchmethod inpy_grpcio/package.pyto replace a hardcoded search forlibabsl_*.soin/usrwith a dynamic search in the spackabseil-cpplibrary prefix.