view bitbucket-pipelines.yml @ 405:478d83448b0b

Refactor Python initialization into a common function * oct-py-init.cc, oct-py-init.h: New files defining a pytave::py_init function. * __py_struct_from_dict__.cc, pycall.cc, pyeval.cc, pyexec.cc: Use it instead of initializing Python differently in each entry point. * Makefile.am (COMMON_SOURCE_FILES): Include oct-py-init.cc in the list. (PYTAVE_HEADER_FILES): Include oct-py-init.h in the list.
author Mike Miller <mtmiller@octave.org>
date Sat, 29 Apr 2017 15:43:42 -0700
parents a1fb6575f6dd
children 4f415a887ff8
line wrap: on
line source

image: mtmiller/octave-snapshot

pipelines:
  default:
    - step:
        script:
          - apt-get update
          - apt-get install -y python-dev python3-dev
          - apt-get install -y libboost-python-dev python-numpy python3-numpy
          - autoreconf -i
          - mkdir -p py2 py3
          - ( cd py2 && ../configure PYTHON_VERSION=2 )
          - make -C py2 all
          - make -C py2 check
          - ( cd py3 && ../configure PYTHON_VERSION=3 )
          - make -C py3 all
          - make -C py3 check