### Build and Install Project (Windows) Source: https://rattler.build/latest/index This script configures and builds the project on Windows using CMake and Ninja. It sets up release mode, enables shared libraries, specifies installation and prefix paths, and configures dependencies like cURL and zlib. The script checks for errors after the CMake configuration and proceeds with a verbose Ninja installation. ```batch mkdir build cmake -GNinja \ -DCMAKE_BUILD_TYPE=Release \ -DBUILD_SHARED_LIBS=ON \ -DCMAKE_INSTALL_PREFIX=%LIBRARY_PREFIX% \ -DCMAKE_PREFIX_PATH=%LIBRARY_PREFIX% \ -DCURL_USE_SCHANNEL=ON \ -DCURL_USE_LIBSSH2=OFF \ -DUSE_ZLIB=ON \ -DENABLE_UNICODE=ON \ %SRC_DIR% IF %ERRORLEVEL% NEQ 0 exit 1 ninja install --verbose ``` -------------------------------- ### Clean Build Artifacts (Unix-like) Source: https://rattler.build/latest/index This command removes the 'share' directory from the installation prefix. It's typically used to clean up previously installed shared files or to ensure a clean state before a new installation. This command is specific to Unix-like environments and requires appropriate permissions. ```bash rm -rf "${PREFIX}/share" ``` -------------------------------- ### Build Curl Library Script (Bash) Source: https://rattler.build/latest/index A `build.sh` script for building the `curl` library on Unix-like systems. It configures the build with specified options, including SSL support and prefix, then compiles and installs the library using `make`. ```bash #!/bin/bash # Get an updated config.sub and config.guess cp $BUILD_PREFIX/share/libtool/build-aux/config.* . if [[ $target_platform =~ linux.* ]]; then USESSL="--with-openssl=${PREFIX}" else USESSL="--with-secure-transport" fi; ./configure \ --prefix=${PREFIX} \ --host=${HOST} \ ${USESSL} \ --with-ca-bundle=${PREFIX}/ssl/cacert.pem \ --disable-static --enable-shared make -j${CPU_COUNT} ${VERBOSE_AT} make install ``` -------------------------------- ### Build xtensor C++ Library Recipe (YAML) Source: https://rattler.build/latest/index A `recipe.yaml` file for building the xtensor C++ header-only library. It specifies package metadata, source URL, build scripts for different platforms (Windows and Unix-like), build and run requirements, and testing procedures. ```yaml context: name: xtensor version: 0.24.6 package: name: ${{ name|lower }} version: ${{ version }} source: url: https://github.com/xtensor-stack/xtensor/archive/${{ version }}.tar.gz sha256: f87259b51aabafdd1183947747edfff4cff75d55375334f2e81cee6dc68ef655 build: number: 0 script: - if: win then: | cmake -G "NMake Makefiles" -D BUILD_TESTS=OFF -D CMAKE_INSTALL_PREFIX=%LIBRARY_PREFIX% %SRC_DIR% nmake nmake install else: | cmake ${CMAKE_ARGS} -DBUILD_TESTS=OFF -DCMAKE_INSTALL_PREFIX=$PREFIX $SRC_DIR -DCMAKE_INSTALL_LIBDIR=lib make install requirements: build: - ${{ compiler('cxx') }} - cmake - if: unix then: make host: - xtl >=0.7,<0.8 run: - xtl >=0.7,<0.8 run_constraints: - xsimd >=8.0.3,<10 tests: - script: - if: unix or emscripten then: - test -d ${PREFIX}/include/xtensor - test -f ${PREFIX}/include/xtensor/xarray.hpp - test -f ${PREFIX}/share/cmake/xtensor/xtensorConfig.cmake - test -f ${PREFIX}/share/cmake/xtensor/xtensorConfigVersion.cmake - if: win then: - if not exist %LIBRARY_PREFIX%\include\xtensor\xarray.hpp (exit 1) - if not exist %LIBRARY_PREFIX%\share\cmake\xtensor\xtensorConfig.cmake (exit 1) - if not exist %LIBRARY_PREFIX%\share\cmake\xtensor\xtensorConfigVersion.cmake (exit 1) about: homepage: https://github.com/xtensor-stack/xtensor license: BSD-3-Clause license_file: LICENSE summary: The C++ tensor algebra library description: Multi dimensional arrays with broadcasting and lazy computing documentation: https://xtensor.readthedocs.io repository: https://github.com/xtensor-stack/xtensor extra: recipe-maintainers: - some-maintainer ``` -------------------------------- ### Build Curl Library Recipe (YAML) Source: https://rattler.build/latest/index A `recipe.yaml` file for building the `curl` library. It specifies package details, source URL, and build requirements for both build and host environments, including compilers and platform-specific tools like cmake, ninja, make, perl, and pkg-config. ```yaml context: version: "8.0.1" package: name: curl version: ${{ version }} source: url: http://curl.haxx.se/download/curl-${{ version }}.tar.bz2 sha256: 9b6b1e96b748d04b968786b6bdf407aa5c75ab53a3d37c1c8c81cdb736555ccf build: number: 0 requirements: build: - ${{ compiler('c') }} - if: win then: - cmake - ninja - if: unix then: - make - perl - pkg-config - libtool host: - if: linux then: - openssl about: homepage: http://curl.haxx.se/ license: MIT/X derivate (http://curl.haxx.se/docs/copyright.html) license_file: COPYING summary: tool and library for transferring data with URL syntax description: | Curl is an open source command line tool and library for transferring data with URL syntax. It is used in command lines or scripts to transfer data. documentation: https://curl.haxx.se/docs/ repository: https://github.com/curl/curl ``` -------------------------------- ### Build Rich Python Package Recipe (YAML) Source: https://rattler.build/latest/index A `recipe.yaml` file for building the `rich` Python package using `noarch: python`. It defines package metadata, source URL, build script using pip, and host/run requirements, including Python version and other dependencies. ```yaml context: version: "13.4.2" package: name: "rich" version: ${{ version }} source: - url: https://pypi.io/packages/source/r/rich/rich-${{ version }}.tar.gz sha256: d653d6bccede5844304c605d5aac802c7cf9621efd700b46c7ec2b51ea914898 build: # Thanks to `noarch: python` this package works on all platforms noarch: python script: - python -m pip install . -vv requirements: host: - pip - poetry-core >=1.0.0 - python 3.10.* run: # sync with normalized deps from poetry-generated setup.py - markdown-it-py >=2.2.0 - pygments >=2.13.0,<3.0.0 - python 3.10.* - typing_extensions >=4.0.0,<5.0.0 tests: - python: imports: - rich pip_check: true about: homepage: https://github.com/Textualize/rich license: MIT license_file: LICENSE summary: Render rich text, tables, progress bars, syntax highlighting, markdown and more to the terminal description: | Rich is a Python library for rich text and beautiful formatting in the terminal. The Rich API makes it easy to add color and style to terminal output. Rich can also render pretty tables, progress bars, markdown, syntax highlighted source code, tracebacks, and more — out of the box. documentation: https://rich.readthedocs.io repository: https://github.com/Textualize/rich ``` === COMPLETE CONTENT === This response contains all available snippets from this library. No additional content exists. Do not make further requests.