diff --git a/conda.recipe/build.sh b/conda.recipe/build.sh new file mode 100644 index 0000000000000000000000000000000000000000..5f015ddd0f07d2d052c6bdaae510ca0a80aa4be4 --- /dev/null +++ b/conda.recipe/build.sh @@ -0,0 +1,2 @@ +# build protobuf files +echo 0 \ No newline at end of file diff --git a/conda.recipe/cpp/meta.yaml b/conda.recipe/cpp/meta.yaml deleted file mode 100644 index 993ae6d240141ad117eab626cacacbe2f7c75a22..0000000000000000000000000000000000000000 --- a/conda.recipe/cpp/meta.yaml +++ /dev/null @@ -1,29 +0,0 @@ -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.* diff --git a/conda.recipe/cpp/build.sh b/conda.recipe/install_cpp.sh similarity index 95% rename from conda.recipe/cpp/build.sh rename to conda.recipe/install_cpp.sh index 5b6408edf500ab9d3b213cd57e4c81316b791b16..e4c39c82d0475d1cae7a91df31bbe8028a3e90d4 100644 --- a/conda.recipe/cpp/build.sh +++ b/conda.recipe/install_cpp.sh @@ -1,4 +1,6 @@ #!/bin/bash +echo "Installing ipaaca-cpp" + INCLUDE_PATH="${PREFIX}/include" LIBRARY_PATH="${PREFIX}/lib" diff --git a/conda.recipe/python/build.sh b/conda.recipe/install_python.sh similarity index 100% rename from conda.recipe/python/build.sh rename to conda.recipe/install_python.sh diff --git a/conda.recipe/meta.yaml b/conda.recipe/meta.yaml index 70b896df175ca43f1de50329033a319f55287008..c1ffb4254caee4bcdb2ab38558289993b4b9f1e9 100644 --- a/conda.recipe/meta.yaml +++ b/conda.recipe/meta.yaml @@ -2,21 +2,53 @@ package: name: ipaaca version: "0.1.0" -# source: -# - path: ../ipaacalib/cpp/ -# folder: ipaaca-cpp -# - path: ../ipaacalib/python/ -# folder: ipaaca-py -# - 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 -run: - - ipaaca-cpp - - ipaaca-py +requirements: + build: + - {{ compiler('cxx') }} 7.3 # [linux] + - cmake >=3.10 + run: + - ipaaca-cpp + - ipaaca-py +outputs: + - name: ipaaca-cpp + script: install_cpp.sh + requirements: + host: + - libprotobuf + - mosquitto + - libboost + + run: + - mosquitto + - libprotobuf + - libboost + - name: ipaaca-py + script: install_python.sh + requirements: + host: + - python + - pip + - setuptools + - protobuf + + run: + - python + - mosquitto + - paho-mqtt + - protobuf + # requirements: # build: # - {{ compiler('cxx') }} 7.3 # [linux] diff --git a/conda.recipe/python/meta.yaml b/conda.recipe/python/meta.yaml deleted file mode 100644 index 3f05568cc9c8cbd702a646259d1fd93c0ca156ff..0000000000000000000000000000000000000000 --- a/conda.recipe/python/meta.yaml +++ /dev/null @@ -1,29 +0,0 @@ -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 - - protobuf - - run: - - python - - mosquitto - - paho-mqtt - - protobuf -