Skip to content

Commit ee5d646

Browse files
committed
drop checks in setup.py
1 parent ad11de6 commit ee5d646

File tree

1 file changed

+0
-38
lines changed

1 file changed

+0
-38
lines changed

setup.py

Lines changed: 0 additions & 38 deletions
Original file line numberDiff line numberDiff line change
@@ -19,27 +19,6 @@
1919
import os
2020
import sys
2121

22-
# **Python version check**
23-
#
24-
# This check is also made in IPython/__init__, don't forget to update both when
25-
# changing Python version requirements.
26-
27-
28-
error = """
29-
(information not available for more recent version of IPython)
30-
IPython 8.19+ supports Python 3.10 and above, following SPEC0
31-
IPython 8.13+ supports Python 3.9 and above, following NEP 29.
32-
IPython 8.0-8.12 supports Python 3.8 and above, following NEP 29.
33-
34-
Python {py} detected.
35-
{pip}
36-
""".format(
37-
py=sys.version_info, pip=pip_message
38-
)
39-
40-
print(error, file=sys.stderr)
41-
sys.exit(1)
42-
4322
# At least we're on the python version we need, move on.
4423

4524
from setuptools import setup
@@ -55,23 +34,6 @@
5534
git_prebuild,
5635
)
5736

58-
#-------------------------------------------------------------------------------
59-
# Handle OS specific things
60-
#-------------------------------------------------------------------------------
61-
62-
if os.name in ('nt','dos'):
63-
os_name = 'windows'
64-
else:
65-
os_name = os.name
66-
67-
# Under Windows, 'sdist' has not been supported. Now that the docs build with
68-
# Sphinx it might work, but let's not turn it on until someone confirms that it
69-
# actually works.
70-
if os_name == 'windows' and 'sdist' in sys.argv:
71-
print('The sdist command is not available under Windows. Exiting.')
72-
sys.exit(1)
73-
74-
7537
#-------------------------------------------------------------------------------
7638
# Things related to the IPython documentation
7739
#-------------------------------------------------------------------------------

0 commit comments

Comments
 (0)