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

Build static libs for suitesparse #9

Open
wants to merge 6 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions .gitattributes
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
* text=auto

meta.yaml text eol=lf
build.sh text eol=lf
bld.bat text eol=crlf
6 changes: 4 additions & 2 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
language: generic

os: osx
osx_image: beta-xcode6.1
osx_image: xcode6.4

env:
global:
Expand All @@ -14,7 +14,7 @@ env:

before_install:
# Remove homebrew.
- brew remove --force $(brew list)
- brew remove --force --ignore-dependencies $(brew list)
- brew cleanup -s
- rm -rf $(brew --cache)

Expand All @@ -26,6 +26,8 @@ install:
bash $MINICONDA_FILE -b

source /Users/travis/miniconda3/bin/activate root
conda config --remove channels defaults
conda config --add channels defaults
conda config --add channels conda-forge
conda config --set show_channel_urls true
conda install --yes --quiet conda-forge-build-setup
Expand Down
24 changes: 12 additions & 12 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,18 @@ recursive-bisection, multilevel k-way, and multi-constraint partitioning
schemes developed in our lab.


Current build status
====================

Linux: [![Circle CI](https://circleci.com/gh/conda-forge/metis-feedstock.svg?style=shield)](https://circleci.com/gh/conda-forge/metis-feedstock)
OSX: [![TravisCI](https://travis-ci.org/conda-forge/metis-feedstock.svg?branch=master)](https://travis-ci.org/conda-forge/metis-feedstock)
Windows: [![AppVeyor](https://ci.appveyor.com/api/projects/status/github/conda-forge/metis-feedstock?svg=True)](https://ci.appveyor.com/project/conda-forge/metis-feedstock/branch/master)

Current release info
====================
Version: [![Anaconda-Server Badge](https://anaconda.org/conda-forge/metis/badges/version.svg)](https://anaconda.org/conda-forge/metis)
Downloads: [![Anaconda-Server Badge](https://anaconda.org/conda-forge/metis/badges/downloads.svg)](https://anaconda.org/conda-forge/metis)

Installing metis
================

Expand Down Expand Up @@ -72,18 +84,6 @@ Terminology
**conda-forge** - the place where the feedstock and smithy live and work to
produce the finished article (built conda distributions)

Current build status
====================

Linux: [![Circle CI](https://circleci.com/gh/conda-forge/metis-feedstock.svg?style=shield)](https://circleci.com/gh/conda-forge/metis-feedstock)
OSX: [![TravisCI](https://travis-ci.org/conda-forge/metis-feedstock.svg?branch=master)](https://travis-ci.org/conda-forge/metis-feedstock)
Windows: [![AppVeyor](https://ci.appveyor.com/api/projects/status/github/conda-forge/metis-feedstock?svg=True)](https://ci.appveyor.com/project/conda-forge/metis-feedstock/branch/master)

Current release info
====================
Version: [![Anaconda-Server Badge](https://anaconda.org/conda-forge/metis/badges/version.svg)](https://anaconda.org/conda-forge/metis)
Downloads: [![Anaconda-Server Badge](https://anaconda.org/conda-forge/metis/badges/downloads.svg)](https://anaconda.org/conda-forge/metis)


Updating metis-feedstock
========================
Expand Down
35 changes: 9 additions & 26 deletions appveyor.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,11 +9,6 @@ environment:
# See: http://stackoverflow.com/a/13751649/163740
CMD_IN_ENV: "cmd /E:ON /V:ON /C obvci_appveyor_python_build_env.cmd"

# We set a default Python version for the miniconda that is to be installed. This can be
# overridden in the matrix definition where appropriate.
CONDA_PY: "27"
CONDA_INSTALL_LOCN: "C:\\Miniconda-x64"

BINSTAR_TOKEN:
# The BINSTAR_TOKEN secure variable. This is defined canonically in conda-forge.yml.
secure: MP4hZYylDyUWEsrt3u3cod2sbFeRwUziH02mvQOdbjsTO/l1yIxDkP/76rSIjcGC
Expand All @@ -27,14 +22,6 @@ environment:
CONDA_PY: 27
CONDA_INSTALL_LOCN: C:\\Miniconda-x64

- TARGET_ARCH: x86
CONDA_PY: 34
CONDA_INSTALL_LOCN: C:\\Miniconda3

- TARGET_ARCH: x64
CONDA_PY: 34
CONDA_INSTALL_LOCN: C:\\Miniconda3-x64

- TARGET_ARCH: x86
CONDA_PY: 35
CONDA_INSTALL_LOCN: C:\\Miniconda35
Expand Down Expand Up @@ -63,23 +50,19 @@ install:
# Cywing's git breaks conda-build. (See https://github.com/conda-forge/conda-smithy-feedstock/pull/2.)
- cmd: rmdir C:\cygwin /s /q

# Add path, activate `conda` and update conda.
- cmd: call %CONDA_INSTALL_LOCN%\Scripts\activate.bat
- cmd: conda update --yes --quiet conda

- cmd: set PYTHONUNBUFFERED=1

# Add our channels.
- cmd: set "OLDPATH=%PATH%"
- cmd: set "PATH=%CONDA_INSTALL_LOCN%\\Scripts;%CONDA_INSTALL_LOCN%\\Library\\bin;%PATH%"
- cmd: conda config --set show_channel_urls true
- cmd: conda config --remove channels defaults
- cmd: conda config --add channels defaults
- cmd: conda config --add channels conda-forge

# Add a hack to switch to `conda` version `4.1.12` before activating.
# This is required to handle a long path activation issue.
# Please see PR ( https://github.com/conda/conda/pull/3349 ).
- cmd: conda install --yes --quiet conda=4.1.12
- cmd: set "PATH=%OLDPATH%"
- cmd: set "OLDPATH="

# Actually activate `conda`.
- cmd: call %CONDA_INSTALL_LOCN%\Scripts\activate.bat
- cmd: set PYTHONUNBUFFERED=1

# Configure the VM.
- cmd: conda install -n root --quiet --yes obvious-ci
- cmd: conda install -n root --quiet --yes conda-forge-build-setup
- cmd: run_conda_forge_build_setup
Expand Down
6 changes: 3 additions & 3 deletions ci_support/run_docker_build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ config=$(cat <<CONDARC

channels:
- conda-forge
- defaults # As we need conda-build
- defaults

conda-build:
root-dir: /feedstock_root/build_artefacts
Expand All @@ -25,8 +25,8 @@ CONDARC
)

cat << EOF | docker run -i \
-v ${RECIPE_ROOT}:/recipe_root \
-v ${FEEDSTOCK_ROOT}:/feedstock_root \
-v "${RECIPE_ROOT}":/recipe_root \
-v "${FEEDSTOCK_ROOT}":/feedstock_root \
-a stdin -a stdout -a stderr \
condaforge/linux-anvil \
bash || exit $?
Expand Down
9 changes: 6 additions & 3 deletions recipe/build.sh
Original file line number Diff line number Diff line change
@@ -1,8 +1,11 @@
#!/bin/bash

make config \
shared=1 \
prefix=$PREFIX
# Build dynamic libs
make config shared=1 prefix=$PREFIX
make
make install

# Build static libs
make config prefix=$PREFIX
make
make install
3 changes: 3 additions & 0 deletions recipe/meta.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ source:

build:
number: 3
skip: true # [win and py36]
binary_relocation: true
features:
- vc9 # [win and py27]
Expand All @@ -34,6 +35,8 @@ requirements:
- vc 14 # [win and py35]

test:
source_files:
- graphs/*
commands:
- graphchk # [unix]
- cmpfillin -h # [unix]
Expand Down