Uh oh!
There was an error while loading. Please reload this page.
Update osx workflow - #296
Conversation
deronnax
commented
Mar 21, 2024
out of curiosity: why not use pkg-config for flags? |
jonathangreen
commented
Mar 21, 2024
@deronnax it seemed like pkg-config wasn't working for me, I kept getting the osx system |
jonathangreen
commented
Mar 21, 2024
@deronnax hmm so this seems to be working for me now, just setting |
jonathangreen
commented
Mar 22, 2024
@deronnax a small follow up to this. For me locally on my mac, its not enough to just setting This must be something about my local setup though, since it seems in CI its enough to set |
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Co-authored-by: Stu Tomlinson <stu@nosnilmot.com>
Co-authored-by: Stu Tomlinson <stu@nosnilmot.com>
jonathangreen
commented
Mar 24, 2024
@nosnilmot thank you for the great suggestions. I have accepted them into the PR. I had to make a slight change to #296 (comment) as it resulted in the build failing because GH actions does not do shell expansion on the env vars defined in the |
deronnax
commented
Mar 25, 2024
@jonathangreen thank you for this precious insights. You made me discover that on my mac, I am probably actually linking against the system libxml2 and not homebrew's one, which I thought I did. Do you have tips to check that? Btw, I see you are not using |
jonathangreen
commented
Mar 28, 2024
Yes. In this PR I'm using the
Now that #299 is merged in, if you build the latest it should give you a useful exception if that is the case. A couple things to try if you are having issues getting this module to build and link against the correct version of libxml2:
|
mxamin
commented
Apr 5, 2024
@jonathangreen The reason cp35 is failing is because of type hints. Type hints like Dict and List are supported from >=3.6. I removed them in a separate PR (#303) so yours should pass too after the merge. |
Update osx workflow to make sure that the brew installed version of
libxml2is in the path when compiling xmlsec, rather then the osx system supplied one, to avoid the issue noted in #283 where the tests segfault. This is done by settingPKG_CONFIG_PATH.This gets the workflow for osx in a mostly passing state. Tests pass for Python 3.6 - 3.11. Tests for Python 3.5 are still failing because the type annotations added in #253 are not valid for Python 3.5. So that either needs to be fixed, or Python 3.5 support needs to get dropped for this to be fully passing.