1- {% set REPO_NAME = environ.get('REPO_NAME', 'cpp-python-tool-template ') %}
1+ {% set REPO_NAME = environ.get('REPO_NAME', 'aligncount ') %}
22{% set VERSION = environ.get('VERSION', '0.2.78') %}
33{% set TAR_URL = environ.get('TAR_URL', 'https://github.com/vr1087/cpp-python-tool-template/archive/refs/tags/v0.2.78.tar.gz') %}
44{% set SHA256 = environ.get('SHA256', 'c6d93172e84da45fc1b0f172d56b318f17b682d80edb03d6c0d9900938dee97a') %}
@@ -13,69 +13,55 @@ source:
1313 sha256 : {{ SHA256 }}
1414
1515build :
16- skip : true # [win]
17- detect_python : False
18- # ------------------------------------------------------------
19- # 1) Build C++ with CMake, 2) Run CTest to exercise C++ tests,
20- # 3) If CTest passes, install the binary into $PREFIX/bin
21- # ------------------------------------------------------------
16+ detect_python : false
17+ script_env :
18+ - CFLAGS
19+ - CXXFLAGS
2220 script : |
23-
24- # Configure & compile
25- cd cpp
26- cmake \
27- -S standalone \
28- -B build/standalone \
21+ export CFLAGS="-I${PREFIX}/include $CFLAGS"
22+ export CXXFLAGS="-I${PREFIX}/include $CXXFLAGS"
23+
24+ cmake -S cpp/standalone -B build/standalone \
2925 -DCMAKE_INSTALL_PREFIX=$PREFIX \
3026 -DCMAKE_BUILD_TYPE=Release
31- cmake \
32- --build build/standalone \
33- --parallel ${CPU_COUNT:-1}
34-
35- # Run C++ unit tests (fail the build if any test fails)
36- cmake \
37- -S test \
38- -B build/test
39- cmake \
40- --build build/test
41- CTEST_OUTPUT_ON_FAILURE=1 cmake \
42- --build build/test \
43- --target test
44-
45- # install the cpp exe
46- cmake \
47- --install . \
48- --prefix $PREFIX
49-
50- number : 0
27+ cmake --build build/standalone --parallel ${CPU_COUNT:-1}
28+ cmake -S cpp/test -B build/test
29+ cmake --build build/test --parallel ${CPU_COUNT:-1}
30+ (cd build/test && ctest --output-on-failure)
31+ cmake --install build/standalone
5132
5233requirements :
5334 build :
5435 - {{ compiler('c') }}
55- - {{ compiler(" cxx" ) }}
36+ - {{ compiler(' cxx' ) }}
5637 - cmake
38+ - autoconf
39+ - automake
40+ - libtool
41+ - m4
42+ - make
5743 host :
58- # This environment only needs to run CMake and the C++ compiler
5944 - {{ compiler('c') }}
60- - {{ compiler(" cxx" ) }}
45+ - {{ compiler(' cxx' ) }}
6146 - cmake
6247
6348outputs :
6449 # ---------------------------------------------------------
65- # Output #1: Arch‐specific C++ executable (aligncount-cpp )
50+ # Output #1: C++ executable package (aligncount)
6651 # ---------------------------------------------------------
6752 - name : aligncount
53+
6854 requirements :
6955 host :
7056 - {{ compiler('c') }}
7157 - {{ compiler("cxx") }}
7258 - cmake
7359 run :
74- - libcxx # [osx]
75- - libgcc-ng # [linux]
60+ - libcxx # [osx]
61+ - libgcc-ng # [linux]
7662
7763 # ---------------------------------------------------------
78- # Output #2: Noarch Python wrapper (aligncount_demo )
64+ # Output #2: Python wrapper (noarch )
7965 # ---------------------------------------------------------
8066 - name : aligncount_wrapper
8167 build :
@@ -102,19 +88,12 @@ outputs:
10288 test :
10389 requires :
10490 - pytest
105-
106- # Copy in Python test file(s) from the repo. At test time,
107- # Conda will have already installed “aligncount” (the
108- # pure-Python wrapper) into the test environment, so the
109- # test can import it.
11091 source_files :
11192 - tests/python/*.py
112-
113- # Invoke pytest on the copied file(s).
11493 commands :
11594 - pytest -q
11695
11796about :
118- home : {{ REPO_HOME }}
97+ home : {{ REPO_HOME }}
11998 license : MIT
12099 summary : " C++ linecount + Python wrapper"
0 commit comments