Skip to content

Commit

Permalink
Revert "Use new subprocess32 when possible"
Browse files Browse the repository at this point in the history
This reverts commit 7520777.
  • Loading branch information
cyberdelia committed Jan 2, 2016
1 parent 42babfb commit 3fa47d1
Show file tree
Hide file tree
Showing 4 changed files with 3 additions and 12 deletions.
8 changes: 1 addition & 7 deletions pipeline/compilers/__init__.py
Original file line number Diff line number Diff line change
@@ -1,13 +1,7 @@
from __future__ import unicode_literals

import os
import sys

if os.name == 'posix' and sys.version_info[0] < 3:
import subprocess32 as subprocess
else:
import subprocess

import subprocess
from tempfile import NamedTemporaryFile

from django.contrib.staticfiles import finders
Expand Down
5 changes: 1 addition & 4 deletions setup.py
Original file line number Diff line number Diff line change
@@ -1,15 +1,12 @@
# -*- coding: utf-8 -*-
import io
import os
import sys

from setuptools import setup, find_packages
import sys

install_requires = []
if (sys.version_info[0], sys.version_info[1]) < (3, 2):
install_requires.append('futures>=2.1.3')
if os.name == 'posix' and sys.version_info[0] < 3:
install_requires.append('subprocess32>=3.2.7')

setup(
name='django-pipeline',
Expand Down
1 change: 1 addition & 0 deletions tests/tests/test_compiler.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@

from pipeline.collector import default_collector
from pipeline.compilers import Compiler, CompilerBase, SubProcessCompiler
from pipeline.conf import settings
from pipeline.exceptions import CompilerError

from tests.utils import _, pipeline_settings
Expand Down
1 change: 0 additions & 1 deletion tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@ basepython =
deps =
py{27,py}: mock
py{27,py}: futures
py{27,py}: subprocess32
django18: Django>=1.8,<1.9
django19: Django>=1.9,<1.10
jinja2
Expand Down

0 comments on commit 3fa47d1

Please sign in to comment.