Skip to content

Commit 7ed1aa3

Browse files
committed
documentation
1 parent 08a4977 commit 7ed1aa3

File tree

1 file changed

+47
-5
lines changed

1 file changed

+47
-5
lines changed

src/maintainer/adding_pkgs.rst

Lines changed: 47 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -638,17 +638,59 @@ go to the root repository directory and run the
638638
``.scripts/run_docker_build.sh`` script. This requires that you have docker
639639
installed on your machine.
640640

641-
You need to define an environment variable named ``CONFIG``. Its value must be
642-
the name of one of the three YAML configuration files in the ``.ci_support``
643-
directory (either ``linux64``, ``osx64``, or ``win64``). As an example, you can
644-
invoke the command as follows. For this to work correctly, you must have ``shyaml`` installed on your machine, for example ``conda install -c conda-forge shyaml``.
641+
You need to define an environment variable named ``CONFIG``. Its value must correspond
642+
the name of one of the YAML configuration file in the ``.ci_support``
643+
directory (for all practical purposes, only ``linux64`` is used here). As an example, you can
644+
invoke the command as follows.
645645

646646
.. code-block:: sh
647647
648648
$ cd staged-recipes
649649
$ CONFIG=linux64 ./.scripts/run_docker_build.sh
650650
651-
Once built, you can find the finished package under ``staged-recipes/build_artifacts``.
651+
Once built, you can find the finished package under ``staged-recipes/build_artifacts``. In order to run cuda-enabled builds locally, you need to set the ``IMAGE_NAME`` environment variable alongside the ``CONFIG`` environment variable (see the following for cuda 10.2 and 11.2).
652+
653+
.. code-block:: sh
654+
655+
$ cd staged-recipes
656+
$ CONFIG=linux64 IMAGE_NAME=quay.io/condaforge/linux-anvil-cos7-cuda:10.2 ./.scripts/run_docker_build.sh
657+
658+
.. code-block:: sh
659+
660+
$ cd staged-recipes
661+
$ CONFIG=linux64 IMAGE_NAME=quay.io/condaforge/linux-anvil-cuda:11.2 ./.scripts/run_docker_build.sh
662+
663+
If you are trying to run ``osx64`` builds, you can directly invoke ``run_osx_build.sh`` script.
664+
665+
.. code-block:: sh
666+
667+
$ cd staged-recipes
668+
$ .scripts/run_osx_build.sh
669+
670+
671+
Or you can build using your own conda-build environment (``conda install conda-build`` or ``mamba install boa``) and the run the command (``conda build recipes/RECIPE_DIR`` or ``mamba build recipes/RECIPE_DIR``). However, if the recipe has additional variables like ``cuda_compiler_version`` in the case of cuda-enabled builds. Then, you would need to set that to ``"None"`` when running on osx.
672+
673+
.. code-block:: sh
674+
675+
$ cd staged-recipes
676+
$ cuda_compiler_version="None" mamba build recipes/RECIPE_DIR
677+
678+
Running tests locally for feedstocks
679+
....................................
680+
681+
Simply invoke the ``build-locally.py`` script in the root of the feedstock repository and select the appropriate build.
682+
683+
.. code-block:: sh
684+
685+
$ cd staged-recipes
686+
$ python build-locally.py
687+
688+
Or append the call with the name of the run from the ``.ci_support`` directory (without the ``.yaml`` extension).
689+
690+
.. code-block:: sh
691+
692+
$ cd staged-recipes
693+
$ python build-locally.py linux_64_c_compiler_version9cuda_compiler_versionNonecudnnundefinedcxx_compiler_version9numpy1.19python3.9.____cpython
652694
653695
654696
About

0 commit comments

Comments
 (0)