SELinux Security Module development
 help / color / mirror / Atom feed
From: Petr Lautrbach <plautrba@redhat.com>
To: Nicolas Iooss <nicolas.iooss@m4x.org>
Cc: selinux@vger.kernel.org
Subject: Re: [PATCH 1/3] Travis-CI: upgrade PyPy to 6.0
Date: Mon, 21 Jan 2019 14:25:44 +0100	[thread overview]
Message-ID: <pjdk1iydtwn.fsf@redhat.com> (raw)
In-Reply-To: <20190120191933.21343-1-nicolas.iooss@m4x.org>


Nicolas Iooss <nicolas.iooss@m4x.org> writes:

> PyPy 6.0 was released in April 2018 but became available on 
> Travis-CI
> only recently. Now that it is available, use it.
>
> While at it, compile Python modules with libpypy-c.so, now that 
> PyPy
> provides this library. This would enable linking Python modules 
> with
> -Wl,-no-undefined (or -Wl,-z,defs) and help fixing issues with
> https://github.com/SELinuxProject/selinux/pull/130.
>
> Tracking issues:
> * https://github.com/travis-ci/travis-ci/issues/9542
> * https://travis-ci.community/t/pypy-2-7-on-xenial/889
>
> Signed-off-by: Nicolas Iooss <nicolas.iooss@m4x.org>

Thanks!

Acked-by: Petr Lautrbach <plautrba@redhat.com>

https://github.com/SELinuxProject/selinux/pull/132


> ---
>  .travis.yml | 14 ++++++++------
>  1 file changed, 8 insertions(+), 6 deletions(-)
>
> diff --git a/.travis.yml b/.travis.yml
> index 08a29b2f5adc..b8e97f83bbcd 100644
> --- a/.travis.yml
> +++ b/.travis.yml
> @@ -20,10 +20,8 @@ env:
>      - PYVER=python2.7 RUBYLIBVER=2.5.1
>      - PYVER=python3.5 RUBYLIBVER=2.5.1
>      - PYVER=python3.6 RUBYLIBVER=2.5.1
> -    # pypy2.7 seems not to be available in Travis-CI Xenial 
> template yet.
> -    # https://github.com/travis-ci/travis-ci/issues/9542
> -    #- PYVER=pypy RUBYLIBVER=2.5.1
> -    - PYVER=pypy3.5 RUBYLIBVER=2.5.1
> +    - PYVER=pypy2.7-6.0 RUBYLIBVER=2.5.1
> +    - PYVER=pypy3.5-6.0 RUBYLIBVER=2.5.1
>  
>      # Test several Ruby versions
>      - PYVER=python3.7 RUBYLIBVER=2.4
> @@ -98,8 +96,12 @@ before_script:
>    - export PYTHON="$VIRTUAL_ENV/bin/python"
>    # Use the header files in /opt/python/... for Python because 
>    the virtualenvs do not provide Python.h
>    - export PKG_CONFIG_PATH="/opt/python/$($PYTHON -c 'import 
>    sys;print("%d.%d.%d" % sys.version_info[:3])')/lib/pkgconfig"
> -  # PyPy does not provide a config file for pkg-config nor a 
> pypy-c.so
> -  - if echo "$PYVER" | grep -q pypy ; then export 
> PYINC=-I$($PYTHON -c 'import sys;print(sys.prefix)')/include 
> PYLIBS= ; fi
> +  # PyPy does not provide a config file for pkg-config
> +  # libpypy-c.so is provided in bin/libpypy-c.so for PyPy and 
> bin/libpypy3-c.so for PyPy3
> +  - if echo "$PYVER" | grep -q pypy ; then
> +        export PYINC=-I$($PYTHON -c 'import 
> sys;print(sys.prefix)')/include ;
> +        export PYLIBS="$($PYTHON -c 'import sys;print("-L%s/bin 
> -l%s" % (sys.prefix, "pypy-c" if sys.version_info < (3,) else 
> "pypy3-c"))')" ;
> +    fi
>  
>    # Find the Ruby executable with version $RUBYLIBVER
>    - rvm reinstall ruby-$RUBYLIBVER --binary


  parent reply	other threads:[~2019-01-21 13:25 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-01-20 19:19 [PATCH 1/3] Travis-CI: upgrade PyPy to 6.0 Nicolas Iooss
2019-01-20 19:19 ` [PATCH 2/3] Travis-CI: add Ruby 2.6 to the test matrix Nicolas Iooss
2019-01-20 19:19 ` [PATCH 3/3] scripts: introduce env_use_destdir.sh helper Nicolas Iooss
2019-01-21 13:25 ` Petr Lautrbach [this message]
2019-01-24 10:46   ` [PATCH 1/3] Travis-CI: upgrade PyPy to 6.0 Petr Lautrbach

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=pjdk1iydtwn.fsf@redhat.com \
    --to=plautrba@redhat.com \
    --cc=nicolas.iooss@m4x.org \
    --cc=selinux@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox