-
Notifications
You must be signed in to change notification settings - Fork 703
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
Build and deploy Python wheels to PyPI #841
Conversation
d962e45
to
123aac1
Compare
Trying this in a separate repository: https://github.com/danielhers/dynet-manylinux1 |
I'm thinking about fixing the Python 2.0.1 version today. It's OK to fix it now then build the wheel files afterwards, right? |
Yes, I don't expect any actual code changes required in order to be able to
build it.
…On Sat, Sep 2, 2017, 17:46 Graham Neubig ***@***.***> wrote:
I'm thinking about fixing the Python 2.0.1 version today. It's OK to fix
it now then build the wheel files afterwards, right?
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#841 (comment)>, or mute
the thread
<https://github.com/notifications/unsubscribe-auth/AAQEw6cs9gn7ipAlAx2BnXH048tn5rhoks5seWpKgaJpZM4PIq1t>
.
|
Eventually I'd like to add a section to DyNet's |
@neubig The automatic PyPI deployment (upon tag creation in clab/dynet) will require adding the PyPI username and (encrypted) password to |
Regarding Windows and GPU, I don't know how to do that on Travis CI, so maybe we'll open another issue for that (in addition to #657, which I think can be closed once this is finished). I don't have access to a machine with a GPU and the ability to install Docker on (which I need for building the Linux wheels), but maybe they can be built on a machine with CUDA even if it doesn't have a GPU. |
0cdcd1c
to
53f9a92
Compare
Turns out |
The Linux wheels now work, at least on the machines I've tested them on. I'm not sure about the macOS wheels, though, as I don't have a Mac to try on. It looks like |
First, this is absolutely awesome that we will be able to install DyNet without compiling. I really appreciate this :) That being said, it doesn't look like it works on Mac:
The work-around here doesn't seem to be working either, as it doesn't look like |
Yes, #146 is just what I was afraid of; that |
For now I removed the macOS wheels from PyPI, so if your OS doesn't have a wheel, you'll just get the source distribution and compile it automatically. |
Refactor .travis.yml to scripts in the .travis/ directory. Build wheels for Linux and macOS, and deploy to PyPI when a new tag is created in clab/dynet.
Getting "Multiple instances of --dynet-devices", should be fixed in DyNet code.
If this might be working on Mac I can try it one more time. |
It's working, but precompiled wheels are just for Linux for now (for Mac you'll get the source distribution). |
So, I opened issues for the remaining tasks related to this, but I think the current PR is ready and useful:
|
(Build for macOS, test)
(Build for Windows, test)
(GPU version)