Skip to content

Commit 398a394

Browse files
committed
Make setup.py PEP-517 compliant
Taken from mattloper#58.
1 parent f749617 commit 398a394

File tree

1 file changed

+5
-12
lines changed

1 file changed

+5
-12
lines changed

setup.py

Lines changed: 5 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -5,18 +5,8 @@
55
"""
66

77
from distutils.core import setup
8-
try: # for pip >= 10
9-
from pip._internal.req import parse_requirements
10-
except ImportError: # for pip <= 9.0.3
11-
from pip.req import parse_requirements
128
from runpy import run_path
139

14-
install_reqs = parse_requirements('requirements.txt', session=False)
15-
try: # for pip < 20.1
16-
install_requires = [str(ir.req) for ir in install_reqs]
17-
except AttributeError: # for pip >= 20.1
18-
install_requires = [str(ir.requirement) for ir in install_reqs]
19-
2010
def get_version():
2111
namespace = run_path('chumpy/version.py')
2212
return namespace['version']
@@ -29,8 +19,11 @@ def get_version():
2919
url='https://github.com/mattloper/chumpy',
3020
description='chumpy',
3121
license='MIT',
32-
install_requires=install_requires,
33-
22+
install_requires=[
23+
'numpy>=1.8.1',
24+
'scipy>=0.13.0',
25+
'six>=1.11.0',
26+
],
3427
# See https://pypi.python.org/pypi?%3Aaction=list_classifiers
3528
classifiers=[
3629
# How mature is this project? Common values are

0 commit comments

Comments
 (0)