|
15 | 15 | - TWINE_USERNAME="mwcraig" |
16 | 16 | matrix: |
17 | 17 | - CONDA_PY=3.6 |
18 | | - - CONDA_PY=3.7 |
| 18 | + - CONDA_PY=3.7.3 # 3.7.4 on conda is broken |
19 | 19 |
|
20 | 20 | install: |
21 | 21 | # Install and set up miniconda. |
22 | 22 | - if [ $TRAVIS_OS_NAME == "linux" ]; then wget http://repo.continuum.io/miniconda/Miniconda3-latest-Linux-x86_64.sh -O miniconda.sh; fi |
23 | 23 | - if [ $TRAVIS_OS_NAME == "osx" ]; then wget http://repo.continuum.io/miniconda/Miniconda3-latest-MacOSX-x86_64.sh -O miniconda.sh; fi |
24 | 24 | - bash miniconda.sh -b -p $CONDA_INSTALL_LOCN |
25 | | - - export PATH=${CONDA_INSTALL_LOCN}/bin:$PATH |
| 25 | + - $CONDA_INSTALL_LOCN/bin/conda init bash |
| 26 | + - source ~/.bash_profile |
| 27 | + - conda activate base |
26 | 28 | - conda config --set always_yes true |
27 | 29 |
|
28 | 30 | # Gets us vpnotebook |
29 | 31 | - conda config --add channels vpython |
30 | 32 | - conda config --append channels conda-forge |
31 | 33 |
|
32 | | - - conda update --quiet conda |
| 34 | + - conda install conda python=$CONDA_PY |
33 | 35 |
|
34 | 36 | # Install a couple of dependencies we need for sure. |
35 | 37 | # Not sure why cython is necessary since it is listed as a build dependency. |
36 | | - - conda install --quiet jinja2 conda-build anaconda-client cython twine pytest |
| 38 | + - conda install --quiet jinja2 conda-build=3.18.9 anaconda-client cython twine pytest |
37 | 39 |
|
38 | 40 | # make a wheel building environment to ensure correct python version. |
39 | 41 | - conda create --quiet -n wheel-build python=$CONDA_PY wheel cython |
@@ -67,7 +69,7 @@ script: |
67 | 69 | # paying attention to CONDA_PY. See: |
68 | 70 | # https://github.com/conda/conda-build/issues/1832 |
69 | 71 | # - export WHEEL_PACKAGE="$OUTPUT_DIR/*.whl" |
70 | | - - source activate wheel-build; python setup.py bdist_wheel; source deactivate |
| 72 | + - conda activate wheel-build; python setup.py bdist_wheel; conda deactivate |
71 | 73 | - export WHEEL_PACKAGE=dist/*.whl |
72 | 74 | - echo $CONDA_PACKAGE |
73 | 75 | - echo $WHEEL_PACKAGE |
|
0 commit comments