-
Notifications
You must be signed in to change notification settings - Fork 99
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
Update osx workflow #296
Update osx workflow #296
Conversation
out of curiosity: why not use pkg-config for flags? |
@deronnax it seemed like pkg-config wasn't working for me, I kept getting the osx system |
@deronnax hmm so this seems to be working for me now, just setting |
@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 |
Co-authored-by: Stu Tomlinson <[email protected]>
Co-authored-by: Stu Tomlinson <[email protected]>
@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 |
@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 |
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:
|
@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
libxml2
is 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.