Skip to content
Snippets Groups Projects
Commit b3c4f5d3 authored by Jan Pöppel's avatar Jan Pöppel
Browse files

created recipes for ipaaca cpp and python. so far tested on macos

parent c8aefbed
No related branches found
No related tags found
No related merge requests found
#!/bin/bash
INCLUDE_PATH="${PREFIX}/include"
LIBRARY_PATH="${PREFIX}/lib"
export CMAKE_INCLUDE_PATH=$INCLUDE_PATH
export CMAKE_LIBRARY_PATH=$LIBRARY_PATH
if [[ "$(uname)" == "Linux" ]]; then
# Linus needs this lrt flag
export LDFLAGS="$LDFLAGS -lrt"
elif [[ "$(uname)" == "Darwin" ]]; then
echo "mac"
fi
# build protobuf files
mkdir -p ipaaca-cpp/build/ipaaca
cd proto
protoc ipaaca.proto --cpp_out=../ipaaca-cpp/build/ipaaca
# build ipaaca cpp
cd ../ipaaca-cpp/build
export VERBOSE=1
cmake .. -DBOOST_INCLUDEDIR=${INCLUDE_PATH} -DBOOST_LIBRARYDIR=${LIBRARY_PATH}
echo "Finished cmake, trying build now"
make
make install DESTDIR=${PREFIX}
cd ../../..
\ No newline at end of file
package:
name: ipaaca-cpp
version: "0.1.0"
source:
- path: ../../ipaacalib/cpp/
folder: ipaaca-cpp
- path: ../../ipaacalib/proto/
folder: proto
build:
number: 1
requirements:
build:
- {{ compiler('cxx') }} 7.3 # [linux]
- cmake >=3.10
host:
- libprotobuf
- mosquitto
- libboost
# - openssl 1.0.*
run:
- mosquitto
- libprotobuf
- libboost
# - openssl 1.0.*
......@@ -2,24 +2,33 @@ package:
name: ipaaca
version: "0.1.0"
source:
- path: ../ipaacalib/python
folder: ipaaca
- path: ../ipaacalib/proto
folder: proto
# source:
# - path: ../ipaacalib/cpp/
# folder: ipaaca-cpp
# - path: ../ipaacalib/python/
# folder: ipaaca-py
# - path: ../ipaacalib/proto/
# folder: proto
build:
number: 1
requirements:
build:
- python
- pip
- setuptools
run:
- ipaaca-cpp
- ipaaca-py
run:
- python
- mosquitto
- protobuf
- paho-mqtt
# requirements:
# build:
# - {{ compiler('cxx') }} 7.3 # [linux]
# - cmake >=3.10
# host:
# - libprotobuf
# - mosquitto
# - libboost
# - openssl 1.0.*
# run:
# - mosquitto
# - libprotobuf
# - libboost
# - openssl 1.0.*
#!/bin/bash
# install rsb-python
# Trick conda build to let rsb-python installation run
# The url to spread in there is not used, but will still raise a RuntimeError if
# not tricked like this...
#unset CONDA_BUILD
#pip install --no-dependencies rsb-python
#set CONDA_BUILD
# Since we setup subfolders for ipaaca and proto, we want to step into the ipaaca folder here
cd ipaaca
# Note: setup.py assumes protoc file to be at ../proto from here and we do not want to change
# that for easier manual installation
cd ipaaca-py
echo "Installing ipaaca using setup.py"
python setup.py install --single-version-externally-managed --record=record.txt
#python -m pip install . -vv
python setup.py install --single-version-externally-managed --record=record.txt
\ No newline at end of file
package:
name: ipaaca-py
version: "0.1.0"
source:
- path: ../../ipaacalib/python
folder: ipaaca-py
- path: ../../ipaacalib/proto
folder: proto
build:
noarch: python
number: 1
# script: "{{ PYTHON }} -m pip install ipaaca-py/ -vv"
requirements:
build:
- python
- pip
- setuptools
- libprotobuf
run:
- python
- mosquitto
- paho-mqtt
- protobuf
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