File tree Expand file tree Collapse file tree 3 files changed +14
-11
lines changed
build_tools/packaging/wheel Expand file tree Collapse file tree 3 files changed +14
-11
lines changed Original file line number Diff line number Diff line change 28
28
29
29
# build mad, statically
30
30
pushd libmad-0.15.1b
31
+ # See https://stackoverflow.com/a/12864879/23845
32
+ sed -i.bak ' s/-march=i486//' configure
31
33
./configure --disable-shared --enable-static --prefix=" $PREFIX /audio/third_party/mad" CFLAGS=-fPIC CXXFLAGS=-fPIC \
32
34
--with-pic --disable-debug --disable-dependency-tracking
33
35
make -s -j && make install
Original file line number Diff line number Diff line change @@ -27,13 +27,15 @@ export PREFIX="/tmp"
27
27
cd /tmp/audio
28
28
29
29
for PYDIR in " ${python_installations[@]} " ; do
30
- # wheels for numba does not work with python 2.7
31
- if [[ " $PYDIR " == " /opt/python/cp27-cp27m/" || " $PYDIR " == " /opt/python/cp27-cp27mu/" ]]; then
32
- continue ;
33
- fi
34
30
export PATH=$PYDIR /bin:$OLD_PATH
31
+ # For true hermetic builds, you ought to be constructing the docker
32
+ # from scratch each time. But this makes things marginally safer if
33
+ # you aren't doing this.
34
+ pip uninstall -y torch || true
35
35
pip install --upgrade pip
36
- pip install -r requirements.txt
36
+ pip install numpy future torch
37
+ # NB: do not actually install requirements.txt; that is only needed for
38
+ # testing
37
39
IS_WHEEL=1 python setup.py clean
38
40
IS_WHEEL=1 python setup.py bdist_wheel
39
41
mkdir -p $OUT_DIR
Original file line number Diff line number Diff line change 1
- if [[ " : $PATH : " == * " conda " * ]] ; then
2
- echo " existing anaconda install in PATH, remove it and run script "
3
- exit 1
4
- fi
1
+ #! /bin/bash
2
+
3
+ set -ex
4
+
5
5
# download and activate anaconda
6
6
rm -rf ~ /minconda_wheel_env_tmp
7
7
wget -q https://repo.anaconda.com/miniconda/Miniconda3-latest-MacOSX-x86_64.sh && \
40
40
conda create -yn $env_name python=" $desired_python "
41
41
conda activate $env_name
42
42
43
- # install torchaudio dependencies
44
- pip install -r requirements.txt
43
+ pip install torch numpy future
45
44
46
45
IS_WHEEL=1 python setup.py clean
47
46
IS_WHEEL=1 python setup.py bdist_wheel
You can’t perform that action at this time.
0 commit comments