<commit_before># defining package and version
{% set name = "libode" %}
{% set version = "0.16" %}
{% set soversion = "0.16.0" %}

package:
  name: {{ name|lower }}
  version: {{ version }}

source:
  url: https://bitbucket.org/odedevs/ode/downloads/ode-{{ version }}.tar.gz
  sha256: 4ba3b76f9c1314160de483b3db92b0569242a07452cbb25b368e75deb3cabf27
  patches:
    - add-rt-to-dotpc                # [linux]
    - modify-dotpc-win               # [win]
    
build:
  number: 0
  skip: true                         # [win and py==27]
  
requirements:
  build:
    - {{ compiler('cxx') }}          # stage 1, library
    - cmake
    - {{ compiler('c') }}            # stage 2, generate bindings
    - pkg-config
    - m2-patch                       # [win]
    - make                           # [unix]
  host:
    - cython
    - python
    
outputs:
  - name: {{ name }}
    files:
      - lib/libode*                                                  # [unix]
      - lib/pkgconfig                                                # [unix]
      - lib/cmake                                                    # [unix]
      - Library/lib/ode_double.lib                                   # [win]
      - Library/bin/ode_double.dll                                   # [win]
      - Library/lib/pkgconfig                                        # [win]
      - Library/lib/cmake                                            # [win]
      - include/ode
    test:
      commands:
        - test -f $PREFIX/lib/libode${SHLIB_EXT}                     # [unix]
        - test -f $PREFIX/lib/libode${SHLIB_EXT}.{{ soversion }}     # [linux]
        - test -f $PREFIX/lib/libode.{{ soversion }}${SHLIB_EXT}     # [osx]
        - test -d $PREFIX/include/ode                                # [unix]
        - test -f $PREFIX/lib/pkgconfig/ode.pc                       # [unix]
        - if not exist %PREFIX%\Library\lib\ode_double.lib exit 1    # [win]
        - if not exist %PREFIX%\Library\bin\ode_double.dll exit 1    # [win]
        - if not exist %PREFIX%\Library\lib\pkgconfig\ode.pc exit 1  # [win]
  - name: pyode
    requirements:
      - {{ pin_subpackage('libode', exact=True) }}
    files:
        - lib/python*/site-packages/*
    test:
      imports:
        - ode

about:
  home: https://www.ode.org/
  license: LGPL-2.0 or BSD-4-Clause
  summary: Open Dynamics Engine, dynamics simulation
  license_file:
    - LICENSE.TXT
    - LICENSE-BSD.TXT

extra:
  recipe-maintainers:
    - repagh
<commit_msg>fix to have compatible run and build python versions<commit_after># defining package and version
{% set name = "libode" %}
{% set version = "0.16" %}
{% set soversion = "0.16.0" %}

package:
  name: {{ name|lower }}
  version: {{ version }}

source:
  url: https://bitbucket.org/odedevs/ode/downloads/ode-{{ version }}.tar.gz
  sha256: 4ba3b76f9c1314160de483b3db92b0569242a07452cbb25b368e75deb3cabf27
  patches:
    - add-rt-to-dotpc                # [linux]
    - modify-dotpc-win               # [win]
    
build:
  number: 0
  skip: true                         # [win and py==27]
  
requirements:
  build:
    - {{ compiler('cxx') }}          # stage 1, library
    - cmake
    - {{ compiler('c') }}            # stage 2, generate bindings
    - pkg-config
    - m2-patch                       # [win]
    - make                           # [unix]
    - python {{ PY_VER }}*
  host:
    - python
    - cython

outputs:
  - name: {{ name }}
    requirements:
      run:
        - pthread-stubs                                              # [unix]
    files:
      - lib/libode*                                                  # [unix]
      - lib/pkgconfig/ode.pc                                         # [unix]
      - lib/cmake/ode-{{ soversion }}                                # [unix]
      - bin/ode-config                                               # [unix]
      - Library/lib/ode_double.lib                                   # [win]
      - Library/bin/ode_double.dll                                   # [win]
      - Library/lib/pkgconfig/ode.pc                                 # [win]
      - Library/lib/cmake/ode*                                       # [win]
      - include/ode
    test:
      commands:
        - test -f $PREFIX/lib/libode${SHLIB_EXT}                     # [unix]
        - test -f $PREFIX/lib/libode${SHLIB_EXT}.{{ soversion }}     # [linux]
        - test -f $PREFIX/lib/libode.{{ soversion }}${SHLIB_EXT}     # [osx]
        - test -d $PREFIX/include/ode                                # [unix]
        - test -f $PREFIX/lib/pkgconfig/ode.pc                       # [unix]
        - if not exist %PREFIX%\Library\lib\ode_double.lib exit 1    # [win]
        - if not exist %PREFIX%\Library\bin\ode_double.dll exit 1    # [win]
        - if not exist %PREFIX%\Library\lib\pkgconfig\ode.pc exit 1  # [win]
  - name: pyode
    requirements:
      run:
        - {{ pin_subpackage('libode', exact=True) }}
        - python {{ PY_VER }}*
    files:
      - lib/python{{ PY_VER }}/site-packages/ode.*
      - lib/python{{ PY_VER }}/site-packages/Open_Dynamics_Engine*egg-info
    test:
      imports:
        - ode

about:
  home: https://www.ode.org/
  license: LGPL-2.0 or BSD-4-Clause
  summary: Open Dynamics Engine, dynamics simulation
  license_file:
    - LICENSE.TXT
    - LICENSE-BSD.TXT

extra:
  recipe-maintainers:
    - repagh

{'fraction_non_alphanumeric': 0.12697527421453803, 'fraction_numerical': 0.023052612009667225, 'mean_word_length': 1.2444722569879016, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 4, 'lorem ipsum': 0, 'www.': 2, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 30, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '6852056', 'n_tokens_mistral': 1762, 'n_tokens_neox': 1655, 'n_words': 331}