Adjust setup for CPython/PyPy
from __future__ import absolute_import
import sys
+import platform
import pad
import distutils.core
-# TODO: adjust this for CPython/PyPy
with open("requirements/base.txt") as base:
requirements = base.readlines()
+if "pypy" in platform.python_implementation().lower():
+ if sys.version_info.major == 3:
+ with open("requirements/pypy3.txt") as py3:
+ requirements.extend(py3.readlines())
+ elif sys.version_info.major == 2:
+ with open("requirements/pypy2.txt") as py2:
+ requirements.extend(py2.readlines())
+else:
if sys.version_info.major == 3:
with open("requirements/python3.txt") as py3:
requirements.extend(py3.readlines())
