Skip to content

Commit

Permalink
Build long prefix package using conda-build 2.x
Browse files Browse the repository at this point in the history
  • Loading branch information
jjhelmus committed Dec 6, 2016
1 parent 09d48d5 commit f2ab5e4
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 1 deletion.
7 changes: 7 additions & 0 deletions .travis.yml
Expand Up @@ -34,7 +34,14 @@ install:
conda install --yes --quiet conda-forge-build-setup
source run_conda_forge_build_setup
# install conda-build 2.x to build with a long prefix
conda install --yes --quiet conda-build=2
conda info
script:
- conda build ./recipe

- upload_or_check_non_existence ./recipe conda-forge --channel=main

# inspect the prefix lengths of the built packages
- conda inspect prefix-lengths /Users/travis/miniconda3/conda-bld/osx-64/*.tar.bz2
7 changes: 7 additions & 0 deletions ci_support/run_docker_build.sh
Expand Up @@ -41,10 +41,17 @@ conda clean --lock
conda install --yes --quiet conda-forge-build-setup
source run_conda_forge_build_setup
# install conda-build 2.x to build a long prefix
conda install --yes --quiet conda-build=2
conda info
# Embarking on 1 case(s).
set -x
export CONDA_PERL=5.20.3.1
set +x
conda build /recipe_root --quiet || exit 1
upload_or_check_non_existence /recipe_root conda-forge --channel=main || exit 1
# inspect the prefix lengths of the built packages
conda inspect prefix-lengths /feedstock_root/build_artefacts/linux-64/*.tar.bz2
EOF
2 changes: 1 addition & 1 deletion recipe/meta.yaml
Expand Up @@ -10,7 +10,7 @@ source:
sha256: eb63cec4bef692eab9db459033f409533e6d10e20942f4b060b32819e81885f1

build:
number: 1
number: 2
detect_binary_files_with_prefix: true
features:
- vc9 # [win and py27]
Expand Down

0 comments on commit f2ab5e4

Please sign in to comment.