File: use-setuptools.patch

package info (click to toggle)
python-dexml 0.4.2-2
  • links: PTS, VCS
  • area: main
  • in suites: wheezy
  • size: 216 kB
  • sloc: python: 1,715; makefile: 21
file content (20 lines) | stat: -rw-r--r-- 429 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
Description: Use setuptools for all Python versions if available
Author: Janos Guljas <janos@resenje.org>
Last-Update: 2011-08-08

--- a/setup.py
+++ b/setup.py
@@ -7,11 +7,11 @@
 
 import sys
 setup_kwds = {}
-if sys.version_info > (3,):
+try:
     from setuptools import setup
     setup_kwds["test_suite"] = "dexml.test"
     setup_kwds["use_2to3"] = True
-else:
+except ImportError:
     from distutils.core import setup