Skip to content

Commit

Permalink
Test for Pypy with Travis.
Browse files Browse the repository at this point in the history
  • Loading branch information
Ezibenroc committed Sep 14, 2016
1 parent e912095 commit eafefa4
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
6 changes: 5 additions & 1 deletion .travis.yml
Expand Up @@ -18,7 +18,11 @@ matrix:
dist: trusty
sudo: required
python: 3.5
# Travis does not support yet Python installation (see https://github.com/travis-ci/travis-ci/issues/2312).
- os: linux
dist: trusty
sudo: required
python: pypy
# Travis does not support yet Python installation on OSX (see https://github.com/travis-ci/travis-ci/issues/2312).
# We will therefore only test with the preinstalled Python 2.7
- os: osx
osx_image: xcode8
Expand Down
2 changes: 1 addition & 1 deletion pyroaring/types_declarations.py
Expand Up @@ -11,7 +11,7 @@
try:
libroaring = ctypes.cdll.LoadLibrary(libfilename)
except OSError as e:
if (is_python2 and sys.argv[0] != '-c') or (not is_python2 and sys.argv[0] != '-m'):
if 'install' not in sys.argv and 'uninstall' not in sys.argv: # dirty, but there is no universal way to detect if pyroaring is ran as a script or is imported...
sys.stderr.write('ERROR: cannot open shared library %s\n' % libfilename)
sys.stderr.write(' Please make sure that the library can be found.\n')
sys.stderr.write(' For instance, on GNU/Linux, it could be in /usr/lib and /usr/include directories,\n')
Expand Down

0 comments on commit eafefa4

Please sign in to comment.