-
Notifications
You must be signed in to change notification settings - Fork 741
Packaging improvements for 0.2.0 #199
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
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,7 +1,7 @@ | ||
| if [[ ":$PATH:" == *"conda"* ]]; then | ||
|
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. without this, you are prone to accidents. but up to you.
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I am not sure how the accident occurs; the script initializes a fresh conda environment and then sources it?
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. if you already have a conda install in path, and you install + source a new conda install, the PATH will have both conda installs at the same time. Then your cmake will find stuff in the first OR the second conda install
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I see. OK I'll bring it back |
||
| echo "existing anaconda install in PATH, remove it and run script" | ||
| exit 1 | ||
| fi | ||
| #!/bin/bash | ||
|
|
||
| set -ex | ||
|
|
||
| # download and activate anaconda | ||
| rm -rf ~/minconda_wheel_env_tmp | ||
| wget -q https://repo.anaconda.com/miniconda/Miniconda3-latest-MacOSX-x86_64.sh && \ | ||
|
|
@@ -40,8 +40,7 @@ do | |
| conda create -yn $env_name python="$desired_python" | ||
| conda activate $env_name | ||
|
|
||
| # install torchaudio dependencies | ||
| pip install -r requirements.txt | ||
| pip install torch numpy future | ||
|
|
||
| IS_WHEEL=1 python setup.py clean | ||
| IS_WHEEL=1 python setup.py bdist_wheel | ||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
if you want, you can use: https://github.com/conda-forge/mad-feedstock/blob/master/recipe/mad.patch
I had issues with clang as well, which need this
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I was able to build wheels after only this change, so that's kind of interesting.