-
-
Notifications
You must be signed in to change notification settings - Fork 1.7k
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
Add MacOS and Windows build targets #1293
Conversation
Codecov Report
@@ Coverage Diff @@
## master #1293 +/- ##
=======================================
Coverage 99.89% 99.89%
=======================================
Files 21 21
Lines 3713 3725 +12
Branches 731 736 +5
=======================================
+ Hits 3709 3721 +12
Misses 2 2
Partials 2 2
Continue to review full report at Codecov.
|
Humm, I'd rather move all this to github actions, see rtoml for a more complex but similar case. Still until we move to github actions completely, maybe this would be a good stop gap. |
please confirm that these steps are working by commenting out the |
Well, MacOS is building, but I can't figure out the Windows errors at the moment. I will happily leave those commented out for someone else to tackle, if you wish. |
I patched pydantic in a few places recently and tried to compile in Windows and ran into the following:
The issue relates to distutils/setuptools and you can read more about it here: The SO answer is best. Adding the following to pydantic's setup.py resolves the build on Win32
(a previous version of this post provided the code from the first example which is fragile compared to the solution above) |
In theory this could break non-windows? So best to include it in an import os
from distutils.command import build_ext
if os.name == 'nt':
def pass_ges(self, ext):
pass
build_ext.get_export_symbols = pass_ges |
agreed, let's try this. |
This reverts commit c449a49.
dfb98eb
to
0a69434
Compare
Doesn't looke like it's fixed that issue:
still happening. https://travis-ci.org/github/samuelcolvin/pydantic/jobs/664032568#L228 |
3bdb0a8
to
0a69434
Compare
74e2475
to
31accb1
Compare
Well it looks like that indeed worked. I took the function from cpython master and the patch from the bug report, and Windows builds are now succeeding! |
incorporated into #1326, thank you so much. |
Change Summary
As of about a week ago, the cibuildwheel repository has new examples for Travis on Mac and Windows: https://github.com/joerick/cibuildwheel/blob/master/examples/travis-ci-test-and-deploy.yml
This adds those targets to .travis.yml to hopefully resolve #555 .
If this passes (which I can't test myself, since you should handle the releases), I can edit https://github.com/samuelcolvin/pydantic/blob/8727914ced9d4546f0f95a453aff78f03b778275/docs/install.md#L19-L21 to reflect it.
Related issue number
#555
Checklist
changes/<pull request or issue id>-<github username>.md
file added describing change(see changes/README.md for details)