-
Notifications
You must be signed in to change notification settings - Fork 263
Building wheels for Py 2.7, 3.5, 3.6, 3.7 with C++11 compiler #251
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
Comments
@jtrmal There's a long-standing PR that should soon get merged and includes some docs on what's possible here: https://github.com/joerick/cibuildwheel/pull/156/files#diff-696b5e631bcfe233e0e5247a751eb20f In general, it is quite possible to do so; I'm building wheels with C++17 using cibuildwheel in my Parselmouth projects. There are a few caveats:
|
Thanks for the quick response, I will check out your stuff in the project.
Y.
…On Thu, Jan 23, 2020 at 14:54 Yannick Jadoul ***@***.***> wrote:
@jtrmal <https://github.com/jtrmal> There's a long-standing PR that
should soon get merged and includes some docs on what's possible here:
https://github.com/joerick/cibuildwheel/pull/156/files#diff-696b5e631bcfe233e0e5247a751eb20f
In general, it is quite possible to do so; I'm building wheels with C++17
using cibuildwheel in my Parselmouth
<https://github.com/YannickJadoul/Parselmouth> projects. There are a few
caveats:
- For manylinux wheels, you need to statically link libstdc++, though
from manylinux2010 onwards, C++11 is supported already (see
pypa/manylinux#118 <pypa/manylinux#118>)
- On macOS, currenlty, the wrong tag gets added to the built wheels
(indicating compatibility with a lower macOS version than it actually is;
that's what's being solved by #156
<#156>). In practice, this
is not a problem since most macOS versions are modern enough.
- On Windows, you need to build with VS2017 or VS2019; and this means
that users will need to have a newer Visual C++ redistributable installed
for older Python versions (though I think from 3.6 or 3.7, the C++ standard
library that's delivered along with the Python installation is modern
enough; see
https://parselmouth.readthedocs.io/en/stable/installation.html#importerror-dll-load-failed-on-windows,
https://wiki.python.org/moin/WindowsCompilers, and
https://pybind11.readthedocs.io/en/stable/faq.html#working-with-ancient-visual-studio-2008-builds-on-windows
)
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#251>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ACUKYX5RBG54DWYW54VWRVLQ7GOSZANCNFSM4KKU6SGA>
.
|
Don't take it as the only way to do things, though; there might still be problems. I've just done my best to get something working, and haven't had too many complaints of things not working in practice, yet. |
I understand, that makes a complete sense.
Thanks.
…On Thu, Jan 23, 2020 at 15:25 Yannick Jadoul ***@***.***> wrote:
Don't take it as the only way to do things, though; there might still be
problems. I've just done my best to get something working, and haven't had
too many complaints of things not working in practice, yet.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#251>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ACUKYX7SC6EDCME2ERHFX5DQ7GSEFANCNFSM4KKU6SGA>
.
|
I'm marking it as resolved, as I was able to succeed. Thanks for the assistance! |
Hi, I have created setup that builds wheels for this project: https://github.com/sequitur-g2p/sequitur-g2p.
The issue is that the project uses heavily C++11, so my understanding is that I cannot build the wheels for the aforementioned packages (or at least it failed because of non-existing headers introduced in C++11). Is there a way around it? Thanks for your time -- I tried to go through docs and PRs and it seems it should be possible in the future but not at this time. Is that right or is there a possibility how to do it?
The text was updated successfully, but these errors were encountered: