| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
1 parent d6de41b commit a29140b
1 file changed
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -7,22 +7,14 @@ | |||
| 7 | 7 | import sys | |
| 8 | 8 | ||
| 9 | 9 | from distutils.command.build import build | |
| 10 | - | ||
| 11 | - from bpython import __version__, package_dir | ||
| 12 | - | ||
| 10 | + from setuptools import setup | ||
| 11 | + from setuptools.command.install import install as _install | ||
| 13 | 12 | try: | |
| 14 | - from setuptools import setup | ||
| 15 | - from setuptools.command.install import install as _install | ||
| 16 | - using_setuptools = True | ||
| 13 | + from setuptools.command.build_py import build_py_2to3 as build_py | ||
| 17 | 14 | except ImportError: | |
| 18 | - from distutils.core import setup | ||
| 19 | - from distutils.command.install import install as _install | ||
| 20 | - using_setuptools = False | ||
| 15 | + from setuptools.command.build_py import build_py | ||
| 21 | 16 | ||
| 22 | - try: | ||
| 23 | - from distutils.command.build_py import build_py_2to3 as build_py | ||
| 24 | - except ImportError: | ||
| 25 | - from distutils.command.build_py import build_py | ||
| 17 | + from bpython import __version__, package_dir | ||
| 26 | 18 | ||
| 27 | 19 | try: | |
| 28 | 20 | from babel.messages.frontend import compile_catalog as _compile_catalog | |
@@ -153,18 +145,13 @@ def initialize_options(self): | |||
| 153 | 145 | ] | |
| 154 | 146 | } | |
| 155 | 147 | ||
| 156 | - scripts = [] if using_setuptools else ['data/bpython', | ||
| 157 | - 'data/bpython-urwid'] | ||
| 158 | - | ||
| 159 | 148 | if sys.version_info[:2] >= (2, 6): | |
| 160 | 149 | # curtsies only supports 2.6 and onwards | |
| 161 | 150 | extras_require['curtsies'] = ['curtsies >=0.1.15, <0.2.0', 'greenlet'] | |
| 162 | 151 | extras_require['watch'] = ['watchdog'] | |
| 163 | 152 | packages.append("bpython.curtsiesfrontend") | |
| 164 | 153 | entry_points['console_scripts'].append( | |
| 165 | 154 | 'bpython-curtsies = bpython.curtsies:main [curtsies]') | |
| 166 | - if not using_setuptools: | ||
| 167 | - scripts.append('data/bpython-curtsies') | ||
| 168 | 155 | ||
| 169 | 156 | if sys.version_info[0] == 2 and sys.platform == "darwin": | |
| 170 | 157 | # need PyOpenSSL for SNI support (only 2.X and on Darwin) | |
@@ -206,7 +193,6 @@ def initialize_options(self): | |||
| 206 | 193 | 'bpython.test': ['test.config', 'test.theme'] | |
| 207 | 194 | }, | |
| 208 | 195 | entry_points = entry_points, | |
| 209 | - scripts = scripts, | ||
| 210 | 196 | cmdclass = cmdclass, | |
| 211 | 197 | test_suite = 'bpython.test' | |
| 212 | 198 | ) | |
| Back | FazBrowse Home | New Git URL |
0 commit comments