Skip to content
This repository has been archived by the owner on Jan 21, 2024. It is now read-only.

Commit

Permalink
Remove Python 2 from setup.py
Browse files Browse the repository at this point in the history
  • Loading branch information
DougBurke committed Feb 10, 2020
1 parent bfcf803 commit f680605
Showing 1 changed file with 2 additions and 9 deletions.
11 changes: 2 additions & 9 deletions setup.py
Expand Up @@ -8,11 +8,7 @@
import ah_bootstrap
from setuptools import setup

# A dirty hack to get around some early import/configurations ambiguities
if sys.version_info[0] >= 3:
import builtins
else:
import __builtin__ as builtins
import builtins
builtins._ASTROPY_SETUP_ = True

from astropy_helpers.setup_helpers import (register_commands, get_debug_option,
Expand All @@ -21,10 +17,7 @@
from astropy_helpers.version_helpers import generate_version_py

# Get some values from the setup.cfg
try:
from ConfigParser import ConfigParser
except ImportError:
from configparser import ConfigParser
from configparser import ConfigParser

conf = ConfigParser()
conf.read(['setup.cfg'])
Expand Down

0 comments on commit f680605

Please sign in to comment.