kopia lustrzana https://github.com/jupyterhub/repo2docker
closes #285
rodzic
29762f4de0
commit
df08af1c66
|
@ -55,6 +55,14 @@ You can also install files from pip in your ``environment.yml`` as well.
|
|||
Our example `environment.yml <https://github.com/binder-examples/python-conda_pip/blob/master/environment.yml>`_
|
||||
shows how one can specify a conda environment for repo2docker.
|
||||
|
||||
You can also specify which Python version you are using with
|
||||
``environment.yml``. By default, ``repo2docker`` will assume you are using
|
||||
Python 3.6 with your ``environment.yml`` unless you include the version of
|
||||
Python in the file. ``conda`` supports Python versions 2.7, 3.4, 3.5, and 3.6.
|
||||
``repo2docker`` support is best with Python 2.7, 3.5, and 3.6. If you include
|
||||
a Python version in a ``runtime.txt`` file in addition to your
|
||||
``environment.yml``, your ``runtime.txt`` **will be ignored**.
|
||||
|
||||
``requirements.txt``
|
||||
^^^^^^^^^^^^^^^^^^^^
|
||||
|
||||
|
@ -123,6 +131,8 @@ To use python-2.7: add python-2.7 in runtime.txt file.
|
|||
The repository will run in a virtualenv with
|
||||
Python 2 installed. To see a full example repository, visit our
|
||||
`Python2 example <https://github.com/binder-examples/python2_runtime/blob/master/runtime.txt>`_.
|
||||
**Python versions in ``runtime.txt`` are ignored when** ``environment.yml`` **is
|
||||
present in the same folder**.
|
||||
|
||||
repo2docker uses R libraries pinned to a specific snapshot on
|
||||
`MRAN <https://mran.microsoft.com/documents/rro/reproducibility>`_.
|
||||
|
|
|
@ -35,6 +35,13 @@ Building the image may take a few minutes.
|
|||
During building, ``repo2docker``
|
||||
clones the repository to obtain its contents and inspects the repo for
|
||||
:ref:`configuration files <config-files>`.
|
||||
|
||||
By default, ``repo2docker`` will assume you are using
|
||||
Python 3.6 unless you include the version of Python in your
|
||||
:ref:`configuration files <config-files>`. ``repo2docker`` support is best with
|
||||
Python 2.7, 3.5, and 3.6. In the case of this repo, a Python version is not
|
||||
specified in their configuation files and Python 3.6 is installed.
|
||||
|
||||
`Python Data Scinece Handbook <https://github.com/jakevdp/PythonDataScienceHandbook>`_
|
||||
uses a `requirements.txt file <https://github.com/jakevdp/PythonDataScienceHandbook/blob/master/requirements.txt>`_
|
||||
to specify its Python environment. ``repo2docker`` uses ``pip`` to install
|
||||
|
|
Ładowanie…
Reference in New Issue