Skip to content
This repository was archived by the owner on Jan 3, 2023. It is now read-only.

Commit 3b98190

Browse files
silee2diyessi
authored andcommitted
Fix incorrect requirements. (#661)
1 parent eb5f6cc commit 3b98190

File tree

4 files changed

+6
-13
lines changed

4 files changed

+6
-13
lines changed

python/requirements.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
1-
numpy==1.13.1
1+
six
2+
numpy
23
typing
3-

python/setup.py

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -227,11 +227,8 @@ def build_extensions(self):
227227
build_ext.build_extensions(self)
228228

229229

230-
requirements = [
231-
"setuptools",
232-
"six",
233-
"numpy"
234-
]
230+
with open('requirements.txt') as req:
231+
requirements = req.read().splitlines()
235232

236233

237234
setup(

python/setup.py.in

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -238,11 +238,8 @@ class BuildExt(build_ext):
238238
build_ext.build_extensions(self)
239239

240240

241-
requirements = [
242-
"setuptools",
243-
"six",
244-
"numpy",
245-
]
241+
with open('${CMAKE_SOURCE_DIR}/requirements.txt') as req:
242+
requirements = req.read().splitlines()
246243

247244

248245
setup(

python/test_requirements.txt

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
pytest
2-
numpy==1.13.1
32
tox
43
flake8
54
flake8-commas

0 commit comments

Comments
 (0)