Skip to content
This repository was archived by the owner on Apr 8, 2025. It is now read-only.

Commit d4655d0

Browse files
committed
Remove broken distutils compat
The distutils compat might be meaningful if the code did not unconditionally call find_packages() (which is undefined in that branch). That said, there's probably no reason whatever why this package would need such compat (i.e. be installed before setuptools), so let's just drop it.
1 parent 545103d commit d4655d0

File tree

1 file changed

+3
-9
lines changed

1 file changed

+3
-9
lines changed

setup.py

Lines changed: 3 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,6 @@
11
import codecs
2-
try:
3-
from setuptools import setup, find_packages
4-
extra_setup = dict(
5-
install_requires=['requests', 'Jinja2>=2.9'],
6-
)
7-
except ImportError:
8-
from distutils.core import setup
9-
extra_setup = {}
2+
3+
from setuptools import setup, find_packages
104

115
setup(
126
name='readthedocs-sphinx-ext',
@@ -16,6 +10,7 @@
1610
url='http://github.com/readthedocs/readthedocs-sphinx-ext',
1711
license='MIT',
1812
description='Sphinx extension for Read the Docs overrides',
13+
install_requires=['requests', 'Jinja2>=2.9'],
1914
package_dir={'': '.'},
2015
packages=find_packages('.'),
2116
long_description=codecs.open("README.rst", "r", "utf-8").read(),
@@ -24,5 +19,4 @@
2419
package_data={
2520
'': ['_static/*.js', '_static/*.js_t', '_static/*.css', '_templates/*.tmpl'],
2621
},
27-
**extra_setup
2822
)

0 commit comments

Comments
 (0)