-
Notifications
You must be signed in to change notification settings - Fork 1.8k
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
automatic wheel builds for linux, osx and windows on travisci #343
base: master
Are you sure you want to change the base?
Conversation
timkofu
commented
Aug 27, 2020
- removed python 2 support in travis
- wheels built via cibuildwheel
- automatic upload to pypi via twine
This is cool, thanks. Why did you remove python2 support? Is the wheel build incompatible? How is $TRAVIS_TAG set? Does it look for a git tag for the current gitref? It looks like I need to configure Travis with a PyPI token also? |
|
This is cool, I'm trying to confirm it works locally. Do you know any way to make it not download and sudo install python onto my dev machine? I want to just build with the locally installed python 3.8 that I have? |
Not at the moment no; this line in |
I love this PR!
Question - Will the wheels then be similar to the inofficial wheels from here - which do include the C dependency as well, so running |
@xmatthias yea, the wheels are effectively statically linked. |
Yeah ta-lib really needs this. Would save a lot time installing ta-lib. We had to write a whole section about installing ta-lib in our projects docs, because users have problems there. There is another example for travis: https://github.com/joerick/cibuildwheel/blob/master/examples/travis-ci-test-and-deploy.yml |
Okay, I'm going to try and get this working today or next few days. It would be nice to reduce the amount of questions I get about installation! |
This should be a good start. The important part is CIBW_BEFORE_BUILD_LINUX, CIBW_BEFORE_BUILD_MACOS and CIBW_BEFORE_BUILD_WINDOWS. Here we have to build ta-lib. I think the paths are not right, the other commands should be. You need to test it on travis. This part: Hope that helps. |
|
I should really figure out how to test this. |
@cryptocoinserver I think that this line needs to be ubuntu based as dist is set to bionic. Right now it is a Redhat flavor.
@mrjbq7 unfortunately there isn't a nice way to test this without just running it. 😢 I know as I'm a core maintainer of a library having to build wheels for OSx, Windows, and Linux too. |
@cryptocoinserver Not sure to be honest, but I think cibuildwheel builds not directly in the dist, but in a manylinux docker. Therfore the yum. Its mentioned here: https://cibuildwheel.readthedocs.io/en/stable/faq/#linux-builds-on-docker I think the only stuff that might need some changes is the path stuff. I'm very confident the rest of the code is right. |