From cd9979788f240ab61d03c4d0bf486c39c4a4e006 Mon Sep 17 00:00:00 2001 From: Jayaram Date: Thu, 17 Oct 2024 11:41:06 +0400 Subject: [PATCH] build custom telosearchlr-v1.0.0 --- recipes/telosearchlr/build.sh | 8 ++++++++ recipes/telosearchlr/meta.yaml | 6 +++--- 2 files changed, 11 insertions(+), 3 deletions(-) create mode 100644 recipes/telosearchlr/build.sh diff --git a/recipes/telosearchlr/build.sh b/recipes/telosearchlr/build.sh new file mode 100644 index 0000000000000..9831536fbaa0d --- /dev/null +++ b/recipes/telosearchlr/build.sh @@ -0,0 +1,8 @@ +#!/bin/bash +mkdir -p ${PREFIX}/bin +for f in *.py; +do +sed -i "1i #!/usr/bin/env python3" "$f" +done +chmod +x *.py +mv *.py $PREFIX/bin diff --git a/recipes/telosearchlr/meta.yaml b/recipes/telosearchlr/meta.yaml index ebb8fcc4f5f97..b5d2c2c595f33 100644 --- a/recipes/telosearchlr/meta.yaml +++ b/recipes/telosearchlr/meta.yaml @@ -10,13 +10,13 @@ source: sha256: "37426e76cae03254a7746becd6b3174f9e0476ef13656998b93f036ec9468101" build: - noarch: python + noarch: generic number: 0 - script: "{{ PYTHON }} -m pip install . -vv" + run_exports: + - {{ pin_subpackage('telosearchlr', max_pin="x") }} requirements: host: - - pip - python >=3.9 run: - python >=3.9