{% set version = "3.6.9" %}
{% set buildnumber = 5 %}

package:
  name: python
  version: {{version}}

source:
  fn: Python-{{version}}.tgz
  url: https://www.python.org/ftp/python/{{version}}/Python-{{version}}.tgz
  sha256: 47fc92a1dcb946b9ed0abc311d3767b7215c54e655b17fd1d3f9b538195525aa
  patches:
    - osx64-dist.patch                  [osx and x86_64]
    - win-find_exe.patch                [win]
    - win-library_bin.patch             [win]
    - intel_version.patch
    - intel_external_libraries.patch    [win]
    - intel_cflags_ldflags.patch        [win]
    - intel_test_socket.patch           [win]
    - intel_distutil_build.patch
    - intel_cprt.patch
    - intel_skip_hanging_test.patch     [osx]
    - intel_build_py_with_pie.patch     [linux]
    - intel_remove_wininst.patch
    - CVE-2019-16056.patch

build:
  number: {{buildnumber}}
  detect_binary_files_with_prefix: False
  no_link:
    - bin/python3.6         [unix]
    - DLLs/_ctypes.pyd      [win]
  track_features:
    - vc14                  [win]

requirements:
  build:
    - bzip2
    - zlib 1.2.*
    - sqlite 3.28.*
    - tcl 8.6.4
    - tk 8.6.4
    - openssl 1.0.2*
    - xz 5.2.*
    - vc 14.0               [win]
  run:
    - intelpython >=2019.0
    - bzip2
    - zlib 1.2.*
    - sqlite 3.28.*
    - tcl 8.6.4
    - tk 8.6.4
    - openssl 1.0.2*
    - xz 5.2.*
    - vc 14.0               [win]

test:
  files:
    - intel_tester_config.py
  script_env:
    - HTTP_PROXY
    - HTTPS_PROXY
    - NO_PROXY
  commands:
    - python -V
    - python3 -V              [unix]
    - pydoc -h
    - python3-config --help   [unix]

about:
  home: http://www.python.org/
  license: PSF
  license_file: LICENSE
  summary: general purpose programming language
  description: |
    Python is a widely used high-level, general-purpose, interpreted, dynamic
    programming language. Its design philosophy emphasizes code
    readability, and its syntax allows programmers to express concepts in
    fewer lines of code than would be possible in languages such as C++ or
    Java. The language provides constructs intended to enable clear programs
    on both a small and large scale.
  doc_url: https://www.python.org/doc/versions/
  dev_url: https://docs.python.org/devguide/
