Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Don't use ImportError to check python version in setup.py #50

Merged
merged 1 commit into from Jul 12, 2012
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
7 changes: 3 additions & 4 deletions setup.py
@@ -1,14 +1,13 @@
#!/usr/bin/env python

import os, re
import sys, os, re

from distutils.core import setup

# Use 2to3 build conversion if required
try:
if sys.version_info >= (3, 0):
from distutils.command.build_py import build_py_2to3 as build_py
except ImportError:
# 2.x
else:
from distutils.command.build_py import build_py

def read(fname):
Expand Down