Skip to content

Commit 4ee1a61

Browse files
Merge pull request sympy#17966 from hugovk/1.5-add-python_requires
1.5: Add python_requires to help pip
2 parents b8bfcf4 + 15e84a2 commit 4ee1a61

File tree

2 files changed

+5
-4
lines changed

2 files changed

+5
-4
lines changed

setup.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -73,8 +73,8 @@
7373

7474
# Make sure I have the right Python version.
7575
if ((sys.version_info[0] == 2 and sys.version_info[1] < 7) or
76-
(sys.version_info[0] == 3 and sys.version_info[1] < 4)):
77-
print("SymPy requires Python 2.7 or 3.4 or newer. Python %d.%d detected"
76+
(sys.version_info[0] == 3 and sys.version_info[1] < 5)):
77+
print("SymPy requires Python 2.7 or 3.5 or newer. Python %d.%d detected"
7878
% sys.version_info[:2])
7979
sys.exit(-1)
8080

@@ -450,6 +450,7 @@ def run(self):
450450
'antlr': antlr,
451451
'sdist': sdist_sympy,
452452
},
453+
python_requires='>=2.7, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*, !=3.4.*',
453454
classifiers=[
454455
'License :: OSI Approved :: BSD License',
455456
'Operating System :: OS Independent',

sympy/__init__.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,8 +36,8 @@ def enable_warnings():
3636

3737
import sys
3838
if ((sys.version_info[0] == 2 and sys.version_info[1] < 7) or
39-
(sys.version_info[0] == 3 and sys.version_info[1] < 4)):
40-
raise ImportError("Python version 2.7 or 3.4 or above "
39+
(sys.version_info[0] == 3 and sys.version_info[1] < 5)):
40+
raise ImportError("Python version 2.7 or 3.5 or above "
4141
"is required for SymPy.")
4242

4343
del sys

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy