kopia lustrzana https://github.com/jupyterhub/repo2docker
Allow specifying requirements.txt with environment.yml
They both get installed.pull/49/head
rodzic
c6a79f1c10
commit
4d4c1fb606
|
@ -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):
|
||||
|
|
|
@ -0,0 +1,2 @@
|
|||
dependencies:
|
||||
- numpy
|
|
@ -0,0 +1 @@
|
|||
there
|
|
@ -0,0 +1,7 @@
|
|||
#!/usr/bin/env python
|
||||
import sys
|
||||
|
||||
assert sys.version_info[:2] == (3, 6)
|
||||
|
||||
import numpy
|
||||
import there
|
Ładowanie…
Reference in New Issue