summaryrefslogtreecommitdiff
path: root/dev-python/montage-wrapper/files/montage-wrapper-0.9.8-use_configparser.patch
blob: 082c3678e125e5580b3a75a012ef17f8e613fc78 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
Author: Vincent Prat <vinceprat@free.fr>
Description: Use ConfigParser module instead of the one embedded in distutils.config
--- a/setup.py
+++ b/setup.py
@@ -21,8 +21,11 @@
 from astropy_helpers.version_helpers import generate_version_py
 
 # Get some values from the setup.cfg
-from distutils import config
-conf = config.ConfigParser()
+try:
+    from configparser import ConfigParser
+except:
+    from ConfigParser import ConfigParser
+conf = ConfigParser()
 conf.read(['setup.cfg'])
 metadata = dict(conf.items('metadata'))