Skip to content

Commit

Permalink
Load requirements from requirements.txt to avoid duplication and out-…
Browse files Browse the repository at this point in the history
…of-sync issues
  • Loading branch information
reuben committed Jul 30, 2020
1 parent c5bda20 commit 9e63cf4
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 28 deletions.
2 changes: 1 addition & 1 deletion requirements.txt
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
torch>=1.5
tensorflow>=2.2
tensorflow==2.3.0rc0
numpy>=1.16.0
scipy>=0.19.0
numba==0.48
Expand Down
33 changes: 6 additions & 27 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -76,34 +76,13 @@ def pip_install(package_name):
)


reqs_from_file = open('requirements.txt').readlines()
reqs_without_tf = [r for r in reqs_from_file if not r.startswith('tensorflow')]
tf_req = [r for r in reqs_from_file if r.startswith('tensorflow')]

requirements = {
'install_requires':[
"torch>=1.5",
"numpy>=1.16.0",
"numba==0.48",
"scipy>=0.19.0",
"librosa==0.7.2",
"unidecode==0.4.20",
"attrdict",
"tensorboardX",
"matplotlib",
"Pillow",
"flask",
"tqdm",
"inflect",
"pysbd",
"bokeh==1.4.0",
"soundfile",
"phonemizer>=2.2.0",
"nose==1.3.7",
"cardboardlint==1.3.0",
"pylint==2.5.3",
'fuzzywuzzy',
'gdown'
],
'pip_install':[
'tensorflow==2.3.0rc0',
]
'install_requires': reqs_without_tf,
'pip_install': tf_req
}


Expand Down

0 comments on commit 9e63cf4

Please sign in to comment.