Skip to content
Prev Previous commit
Next Next commit
fix setup
  • Loading branch information
Carreau committed Feb 4, 2026
commit 4e30b98575ba3d09c80b93ab94f09970201867ae
37 changes: 0 additions & 37 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,27 +19,6 @@
import os
import sys

# **Python version check**
#
# This check is also made in IPython/__init__, don't forget to update both when
# changing Python version requirements.


error = """
(information not available for more recent version of IPython)
IPython 8.19+ supports Python 3.10 and above, following SPEC0
IPython 8.13+ supports Python 3.9 and above, following NEP 29.
IPython 8.0-8.12 supports Python 3.8 and above, following NEP 29.

Python {py} detected.
{pip}
""".format(
py=sys.version_info, pip=pip_message
)

print(error, file=sys.stderr)
sys.exit(1)

# At least we're on the python version we need, move on.

from setuptools import setup
Expand All @@ -55,22 +34,6 @@
git_prebuild,
)

#-------------------------------------------------------------------------------
# Handle OS specific things
#-------------------------------------------------------------------------------

if os.name in ('nt','dos'):
os_name = 'windows'
else:
os_name = os.name

# Under Windows, 'sdist' has not been supported. Now that the docs build with
# Sphinx it might work, but let's not turn it on until someone confirms that it
# actually works.
if os_name == 'windows' and 'sdist' in sys.argv:
print('The sdist command is not available under Windows. Exiting.')
sys.exit(1)


#-------------------------------------------------------------------------------
# Things related to the IPython documentation
Expand Down
Loading