kopia lustrzana https://github.com/jupyterhub/repo2docker
Merge pull request #287 from betatim/python3-runtime-test
Add a test to select Python 3 via runtime.txtpull/294/head
commit
00b40edeb4
|
@ -0,0 +1,9 @@
|
|||
System - Specifying runtime environments
|
||||
----------------------------------------
|
||||
|
||||
You can specify runtime environments (such as Python 2 or 3) with a
|
||||
``runtime.txt`` file.
|
||||
|
||||
This is an example that selects Python 3. Currently you can not use
|
||||
this to select a sepcific version of Python 3 (e.g. 3.4 vs 3.6). If you
|
||||
need this level of control we recommend you use a `environment.yml`.
|
|
@ -0,0 +1 @@
|
|||
python-3
|
|
@ -0,0 +1,5 @@
|
|||
#!/usr/bin/env python3
|
||||
import sys
|
||||
|
||||
print(sys.version_info)
|
||||
assert sys.version_info[:1] == (3,)
|
Ładowanie…
Reference in New Issue