Commit 4a0acd5a authored by Joseph Weston's avatar Joseph Weston
Browse files

make package buildable

use fenics from conda-forge, fix version and apply patch for python3
parent 6f13df8a
#!/bin/bash
INCLUDE_PATH="$PREFIX/include"
LIBRARY_PATH="$PREFIX/lib"
CXX_FLAGS="-Wl,-rpath,$LIBRARY_PATH"
cmake \
-DCMAKE_INSTALL_PREFIX=$PREFIX \
-DCMAKE_INCLUDE_PATH=$INCLUDE_PATH \
-DCMAKE_LIBRARY_PATH=$LIBRARY_PATH \
-DCMAKE_INCLUDE_PATH="$INCLUDE_PATH" \
-DCMAKE_LIBRARY_PATH="$LIBRARY_PATH" \
-DCMAKE_CXX_FLAGS="$CXX_FLAGS" \
-DBUILD_SHARED_LIBS:BOOL=ON \
-DENABLE_TESTS=1 \
.
make
......
{% set version = "2016.1.0" %}
package:
name: mshr
version: "1.6.0"
version: {{version}}
source:
fn: mshr-1.6.0.tar.gz
url: https://bitbucket.org/fenics-project/mshr/downloads/mshr-1.6.0.tar.gz
md5: 44160cccb8a006be27c8d9c33af6a397
url: https://bitbucket.org/fenics-project/mshr/downloads/mshr-{{version}}.tar.gz
sha1: 3a6d45bf72b8c18ab4dda9e3570bc6ea66956c3b
patches:
- python3.patch # [py3k]
build:
number: 1
number: 0
requirements:
build:
- python
- cmake
- dolfin
- fenics {{version}}
- gmp
- mpfr
run:
- python
- dolfin
- cmake
- fenics {{version}}
- gmp
- mpfr
......@@ -32,7 +36,3 @@ about:
home: http://fenicsproject.org/
license: The GNU Lesser General Public License, version 3.0
summary: 'Mesh generation component of FEniCS'
# See
# http://docs.continuum.io/conda/build.html for
# more information about meta.yaml
diff --git a/swig/CMakeLists.txt b/swig/CMakeLists.txt
index 832318a..fd3bec7 100644
--- a/swig/CMakeLists.txt
+++ b/swig/CMakeLists.txt
@@ -12,7 +12,7 @@ include(${SWIG_USE_FILE})
# FIXME: Instead use DOLFIN_PYTHON_EXECUTABLE when
# this has been added to DOLFINConfig.cmake
-find_package(PythonInterp 2)
+find_package(PythonInterp 3)
# Don't use these. Instad get the values from Dolfin
# find_package(PythonLibs)
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment