Commit 3977c095 authored by Jérome Perrin's avatar Jérome Perrin

setup: add dependency to subprocess32 on python2

subprocess32 backports the good things from python3's subprocess and is
recommended on https://docs.python.org/2/library/subprocess.html
parent 10d14bda
...@@ -2,6 +2,7 @@ from setuptools import setup, find_packages ...@@ -2,6 +2,7 @@ from setuptools import setup, find_packages
from shutil import copyfile from shutil import copyfile
import glob import glob
import os import os
import sys
from slapos.version import version from slapos.version import version
name = 'slapos.core' name = 'slapos.core'
...@@ -27,6 +28,9 @@ try: ...@@ -27,6 +28,9 @@ try:
except ImportError: except ImportError:
additional_install_requires.append('argparse') additional_install_requires.append('argparse')
if sys.version_info[0] < 3:
additional_install_requires.append('subprocess32')
setup(name=name, setup(name=name,
version=version, version=version,
description="SlapOS core.", description="SlapOS core.",
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment