Skip to content
Snippets Groups Projects
Commit f056cf15 authored by Giovanni Bussi's avatar Giovanni Bussi
Browse files

Splitting python on a separate package

parent 6741e13f
No related branches found
No related tags found
No related merge requests found
#!/bin/bash
env | sort
cd python
make pip
export plumed_default_kernel=$PREFIX/lib/libplumedKernel$SHLIB_EXT
$PYTHON -m pip install .
python:
- 2.7
- 3.6
- 3.7
{% set name = "py-plumed" %}
{% set version = environ['VERSION'] %}
package:
name: {{ name|lower }}
version: {{ version }}
source:
path: ../..
build:
number: 0
skip: True # [win]
# Note: --no-deps is currently required due to https://github.com/conda/conda-build/issues/3254
# Once resolved, it should be removed.
# script: "{{ PYTHON }} -m pip install . --no-deps -vv"
requirements:
host:
- python
- pip
- cython
run:
# make sure to test with this version
- python
test:
requires:
- plumed
# TODO. In principle these could be the official regtests.
commands:
- python -c "import plumed; p=plumed.Plumed(); print(p)"
about:
home: http://www.plumed.org/
license: LGPL
license_file: COPYING.LESSER
summary: 'Python wrappers for plumed library'
description: >
PLUMED is an open source library for free energy calculations in
molecular systems which works together with some of the most
popular molecular dynamics engines.
doc_url: https://plumed.github.io/doc-v2.5/user-doc/html/index.html
dev_url: https://github.com/plumed/plumed2
......@@ -33,8 +33,3 @@ fi
make -j4
make install
cd python
make pip
export plumed_default_kernel=$PREFIX/lib/libplumedKernel$SHLIB_EXT
$PYTHON -m pip install .
......@@ -23,46 +23,22 @@ requirements:
build:
- {{ compiler('c') }}
- {{ compiler('cxx') }}
- {{ compiler('fortran') }}
- m2-bash # [win]
- m2-curl # [win]
- m2-findutils # [win]
- m2-diffutils # [win]
- m2-gawk # [win]
- m2-grep # [win]
- m2-make # [win]
- m2-sed # [win]
- m2-which # [win]
- m2-tar # [win]
- {{ compiler('m2w64_fortran') }} # [win]
- {{ compiler('m2w64_c') }} # [win]
- {{ compiler('m2w64_cxx') }} # [win]
# - ccache-toolchain
host:
- python
- pip
- cython
- zlib
# cannot link gsl on MacOS
- gsl # [linux]
- m2w64-binutils # [win]
- m2w64-gcc # [win]
- m2w64-tools-git # [win]
run:
- python
- zlib
- gsl # [linux]
test:
# TODO. In principle these could be the official regtests.
imports:
- plumed
commands:
- plumed info --root
- plumed info --version
- plumed info --long-version
- python -c "import plumed; p=plumed.Plumed(); print(p)"
about:
home: http://www.plumed.org/
......
......@@ -24,6 +24,7 @@ conda info -a
conda install conda-build conda-verify anaconda-client
conda-build recipe
conda-build py-plumed
ls -l $CONDA_HOME/conda-bld/
ls -l $CONDA_HOME/conda-bld/$TRAVIS_OS_NAME-64
......
......@@ -3,15 +3,6 @@
# Anywhere but outside of the repository
export CONDA_HOME=/var/tmp/miniconda
if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then
csys=Linux
elif [[ "$TRAVIS_OS_NAME" == "osx" ]]; then
csys=MacOSX
else
echo "Unsupported system $TRAVIS_OS_NAME"
exit 1
fi
export PATH="$CONDA_HOME/bin:$PATH"
# Disabled because it fails
......@@ -19,6 +10,8 @@ if [[ -n "$CONDA_UPLOAD_TOKEN" ]]; then
USER=plumed # the conda channel
anaconda -t $CONDA_UPLOAD_TOKEN upload -u $USER -l testing \
$CONDA_HOME/conda-bld/$TRAVIS_OS_NAME-64/plumed*.tar.bz2 --force
anaconda -t $CONDA_UPLOAD_TOKEN upload -u $USER -l testing \
$CONDA_HOME/conda-bld/$TRAVIS_OS_NAME-64/py-plumed*.tar.bz2 --force
fi
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment