Allow specifying requirements.txt with environment.yml

They both get installed.
pull/49/head
yuvipanda 2017-07-30 05:14:45 -07:00
rodzic c6a79f1c10
commit 4d4c1fb606
4 zmienionych plików z 15 dodań i 0 usunięć

Wyświetl plik

@ -552,6 +552,11 @@ class CondaBuildPack(BuildPack):
conda clean -tipsy
"""
))
if os.path.exists('requirements.txt'):
assembly_scripts.append((
'${NB_USER}',
'pip install --no-cache-dir -r requirements.txt'
))
return assembly_scripts
def detect(self):

Wyświetl plik

@ -0,0 +1,2 @@
dependencies:
- numpy

Wyświetl plik

@ -0,0 +1 @@
there

Wyświetl plik

@ -0,0 +1,7 @@
#!/usr/bin/env python
import sys
assert sys.version_info[:2] == (3, 6)
import numpy
import there