Skip to content
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 binary build #766

Merged
merged 1 commit into from
May 13, 2020
Merged

Add binary build #766

merged 1 commit into from
May 13, 2020

Conversation

mthrok
Copy link
Contributor

@mthrok mthrok commented May 13, 2020

No description provided.

@mthrok mthrok changed the title Add binary build [WIP] Add binary build May 13, 2020
@mthrok mthrok changed the title [WIP] Add binary build Add binary build May 13, 2020
@mthrok mthrok marked this pull request as ready for review May 13, 2020 04:50
@mthrok mthrok force-pushed the binary branch 3 times, most recently from 8c5332e to aef8e4d Compare May 13, 2020 14:41
@mthrok
Copy link
Contributor Author

mthrok commented May 13, 2020

@zhangguanheng66 I ported binary build job from torchaudio. The benefit of this is that after conda package is built, it performs import test. So the concern regarding C++ extension proper installation is automatically addressed.


test:
imports:
- torchtext
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@zhangguanheng66 This is where the import test is defined.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is the old conda build script with some import tests link

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Oh interesting. why was it removed?

jobs:
- circleci_consistency
{{ build_workflows() }}
# - binary_win_conda:
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is this to be fixed in a follow-up PR?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Not my intent.
I am just keeping what was there and making build_workflows work.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should we test the torchtext package with cpp extension on a Windows machine? Although we don't explicitly support Windows, the current package does work on Windows.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ideally, we should. torchaudio does not have this but needs this soon.
We can look into how torchvision does it or ask help from someone with Windows experience.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'll add unit tests first. Binary builds on Windows will come later.

@cpuhrsch cpuhrsch merged commit 3bdf25a into pytorch:master May 13, 2020
@mthrok mthrok deleted the binary branch May 14, 2020 03:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants