File tree Expand file tree Collapse file tree 2 files changed +7
-7
lines changed Expand file tree Collapse file tree 2 files changed +7
-7
lines changed Original file line number Diff line number Diff line change
1
+ include requirements.txt
Original file line number Diff line number Diff line change 14
14
import shutil
15
15
import stat
16
16
17
- from pip .download import PipSession
18
- from pip .req import parse_requirements
19
-
20
17
VERSION = loris .__version__
21
18
22
19
EX_NOUSER = 67
@@ -222,9 +219,11 @@ def __update_and_deploy_config(self):
222
219
config .write ()
223
220
224
221
225
- install_requires = parse_requirements (
226
- local_file ('requirements.txt' ), session = PipSession ()
227
- )
222
+ # We use requirements.txt so we can provide a deterministic set of packages
223
+ # to be installed, not the latest version that happens to be available.
224
+ # e.g. Pillow 5 has some issues with TIFF files that we care about.
225
+ with open ('requirements.txt' ) as f :
226
+ install_requires = list (f )
228
227
229
228
230
229
def _read (fname ):
@@ -242,7 +241,7 @@ def _read(fname):
242
241
license = 'Simplified BSD' ,
243
242
version = VERSION ,
244
243
packages = ['loris' ],
245
- install_requires = [ str ( ir . req ) for ir in install_requires ]
244
+ install_requires = install_requires ,
246
245
)
247
246
248
247
You can’t perform that action at this time.
0 commit comments