| context: |
| freethreading_tag: ${{ "t" if "freethreading" in variant else "" }} |
| abi_prefix: ${{ (variant | split("_"))[0] + "_" if "san" in variant else "" }} |
| abi_tag: ${{ abi_prefix }}cp${{ (version | split('.'))[:2] | join('') }}${{ freethreading_tag }} |
| |
| recipe: |
| name: python |
| |
| source: |
| - path: ../.. |
| |
| outputs: |
| - package: |
| name: python_abi |
| version: ${{ version }} |
| build: |
| string: "0_${{ abi_tag }}" |
| requirements: |
| run_constraints: |
| - python ${{ version }}.* *_${{ abi_tag }} |
| |
| - package: |
| name: python |
| version: ${{ version }} |
| build: |
| flags: |
| - ${{ variant }} |
| variant: |
| down_prioritize_variant: ${{ 0 if variant == "default" else 1 }} |
| string: "0_${{ abi_tag }}" |
| files: |
| exclude: |
| - "*.o" |
| script: |
| file: build.sh |
| env: |
| PYTHON_VARIANT: ${{ variant }} |
| python: |
| site_packages_path: "lib/python${{ version }}${{ freethreading_tag }}/site-packages" |
| |
| # derived from https://github.com/conda-forge/python-feedstock/blob/main/recipe/meta.yaml |
| requirements: |
| build: |
| - ${{ compiler('c') }} |
| - ${{ compiler('cxx') }} |
| # Note that we are not using stdlib arguments which means the packages |
| # are built for the build settings and are not relocatable to a different |
| # machine that has a older system version. (eg: macOS/glibc version) |
| - make |
| - pkg-config |
| # configure script looks for llvm-ar for lto |
| - if: osx |
| then: |
| - llvm-tools |
| |
| host: |
| - bzip2 |
| - sqlite |
| - liblzma-devel |
| - zlib |
| - zstd |
| - openssl |
| - readline |
| - tk |
| # These two are just to get the headers needed for tk.h, but is unused |
| - xorg-libx11 |
| - xorg-xorgproto |
| - ncurses |
| - libffi |
| - if: linux |
| then: |
| - libuuid |
| - libmpdec-devel |
| - expat |
| - if: osx and "san" in variant |
| then: |
| - libcompiler-rt |
| |
| ignore_run_exports: |
| from_package: |
| - xorg-libx11 |
| - xorg-xorgproto |
| |
| run_exports: |
| noarch: |
| - python |
| weak: |
| - python_abi ${{ version }}.* *_${{ abi_tag }} |
| |
| about: |
| homepage: https://www.python.org/ |
| license: Python-2.0 |
| license_file: LICENSE |