diff options
author | Anthon van der Neut <anthon@mnt.org> | 2015-03-18 19:34:26 +0100 |
---|---|---|
committer | Anthon van der Neut <anthon@mnt.org> | 2015-03-18 19:34:26 +0100 |
commit | afdc24a93260e9869361cb7e9855740d2dbd04d3 (patch) | |
tree | aee0b746d9a534b49588054ba2259cfdbb52c73f /setup.py | |
parent | 395f2aad5e097b6f65f0ec366eb6b5c4377453f9 (diff) | |
download | ruamel.yaml-afdc24a93260e9869361cb7e9855740d2dbd04d3.tar.gz |
now installs and tests for pypy (by testing in setup.py and not
depending on ruamel.ordereddict if not CPython 2.x series)
Diffstat (limited to 'setup.py')
-rw-r--r-- | setup.py | 6 |
1 files changed, 5 insertions, 1 deletions
@@ -5,6 +5,7 @@ from __future__ import print_function import sys import os +import platform from textwrap import dedent name_space = 'ruamel' @@ -151,7 +152,8 @@ def main(): "ruamel.std.argparse>=0.5.1", ] # use fast ordereddict for !!omap - if sys.version_info[0] == 2: + if sys.version_info[0] == 2 and \ + platform.python_implementation() == "CPython": install_requires.extend(['ruamel.ordereddict']) # if sys.version_info < (3, 4): # install_requires.append("") @@ -185,6 +187,8 @@ def main(): "Programming Language :: Python :: 2.7", "Programming Language :: Python :: 3.3", "Programming Language :: Python :: 3.4", + "Programming Language :: Python :: Implementation :: CPython", + "Programming Language :: Python :: Implementation :: PyPy", "Topic :: Software Development :: Libraries :: Python Modules", "Topic :: Text Processing :: Markup", ] |